Open/Closed Intervals in Python Using Chained Comparisons

Check this out:
>>> T = Annotated[float, 1 < limits.range]
>>> T.__metadata__
(from (1, inf],)
>>> [x for x in 4 < b.range.step(0.5) <= 6]
[4.5, 5.0, 5.5, 6.0]
Read more →
Check this out:
>>> T = Annotated[float, 1 < limits.range]
>>> T.__metadata__
(from (1, inf],)
>>> [x for x in 4 < b.range.step(0.5) <= 6]
[4.5, 5.0, 5.5, 6.0]
Read more →