We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FiniteDatetimeRange
1 parent 8f79c0b commit c5e8e3dCopy full SHA for c5e8e3d
xocto/ranges.py
@@ -1203,4 +1203,4 @@ def _is_datetime_range(value: Any) -> bool:
1203
# Subscripted generics may not be used with isinstance directly.
1204
# TODO: A TypeGuard would be nicer, once we drop Python 3.9.
1205
def _is_half_finite_datetime_range(value: Any) -> bool:
1206
- return _is_datetime_range(value) and isinstance(value, HalfFiniteRange)
+ return _is_datetime_range(value) or isinstance(value, HalfFiniteRange)
0 commit comments