Add typing for ConditionsWidget.

Review Request #14273 — Created Dec. 16, 2024 and submitted — Latest diff uploaded

Information

Djblets
release-5.x

Reviewers

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 were None.

This is in preparation for some upcoming work on the widget for better
extensibility.

Unit tests pass.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Add typing for ConditionsWidget.
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 were `None`. This is in preparation for some upcoming work on the widget for better extensibility.
d34b4df8e70b9085ef74d428f360b891f7397e93 Christian Hammond
djblets/conditions/values.py
djblets/forms/widgets.py
Loading...