Add typing for conditions.

Review Request #14267 — Created Dec. 11, 2024 and submitted — Latest diff uploaded

Information

Djblets
release-5.x

Reviewers

This adds type hints for Condition and ConditionSet, along with new
TypedDicts for the serialized data. Documentation has also been
updated for all the instance state.

There's room for further improvement here, notably using enums for
ConditionSet modes. That's outside the scope of this change.

Unit tests pass.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Add typing for conditions.
This adds type hints for `Condition` and `ConditionSet`, along with new `TypedDict`s for the serialized data. Documentation has also been updated for all the instance state. There's room for further improvement here, notably using enums for `ConditionSet` modes. That's outside the scope of this change.
9da76452def0309cadf6115f5b875e544cd10e26 Christian Hammond
djblets/conditions/conditions.py
djblets/conditions/tests/test_conditions.py
Loading...