pysmo.typing
Constrained type aliases used in pysmo.
Type Aliases:
| Name | Description |
|---|---|
NegativeNumber |
Negative Numbers (Float or Int) less than 0. |
NegativeTimedelta |
Negative Timedelta. |
NonNegativeNumber |
Non-negative Numbers (Float or Int) greater than or equal to 0. |
NonNegativeTimedelta |
Non-negative Timedelta (includes 0 total_seconds). |
PositiveNumber |
Positive Numbers (Float or Int) greater than 0. |
PositiveTimedelta |
Positive Timedelta. |
UnitFloat |
Float between 0.0 and 1.0, or int that is 0 or 1. |
UtcTimestamp |
Timestamp with utc timezone information. |
NegativeNumber
Negative Numbers (Float or Int) less than 0.
NonNegativeNumber
Non-negative Numbers (Float or Int) greater than or equal to 0.
NonNegativeTimedelta
Non-negative Timedelta (includes 0 total_seconds).
PositiveNumber
Positive Numbers (Float or Int) greater than 0.
UnitFloat
Float between 0.0 and 1.0, or int that is 0 or 1.