Add typing for ConditionsWidget.

Review Request #14273 — Created Dec. 16, 2024 and updated

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.

Summary ID
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.
018751b9d89de50f5b811bc08bf0f90b8474ea2c
Description From Last Updated

This should be documented with a "Version Changed" in the method docstring.

maubinmaubin
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
maubin
  1. 
      
  2. djblets/forms/widgets.py (Diff revision 1)
     
     
    Show all issues

    This should be documented with a "Version Changed" in the method docstring.

  3.