datetime: add timedelta.__bool__ (#5555)

This commit is contained in:
Ilya Konstantinov
2021-05-30 03:43:33 -04:00
committed by GitHub
parent bfc83c365a
commit 2255a6fdc8

View File

@@ -179,6 +179,7 @@ class timedelta(SupportsAbs[timedelta]):
def __lt__(self, other: timedelta) -> bool: ...
def __ge__(self, other: timedelta) -> bool: ...
def __gt__(self, other: timedelta) -> bool: ...
def __bool__(self) -> bool: ...
def __hash__(self) -> int: ...
class datetime(date):