Add typing for conditions.

Review Request #14267 — Created Dec. 11, 2024 and updated

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.

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

'typing.Dict' imported but unused Column: 1 Error code: F401

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

david
  1. Ship It!
  2. 
      
maubin
  1. Ship It!
  2.