Add typing for ConditionsWidget.
Review Request #14273 — Created Dec. 16, 2024 and submitted — Latest diff uploaded
This adds typing throughout
ConditionsWidget
, and fixes some issues
that this unveiled. We had typing assumptions, potential unbound
variables, and bad logic when choices or operators wereNone
.This is in preparation for some upcoming work on the widget for better
extensibility.
Unit tests pass.
djblets/conditions/values.py |
---|
djblets/forms/widgets.py |
---|