Closed moshez closed 3 years ago
The right solution is probably
assert
I'll submit a docs PR
I'll submit a docs PR
Sounds good!
I have been thinking that a mypy-friendlier approach might involve one class per state, so that you can have an _value: Optional[float]
in your earlier states and _value: float
later, and then somehow enforce the relationship between them. Not quite sure how to make that work though.