Add typing for conditions.
Review Request #14267 — Created Dec. 11, 2024 and updated — Latest diff uploaded
This adds type hints for
Condition
andConditionSet
, 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.
Unit tests pass.