Fix return type of datetime.datetime.dst (#2634)

Fixes #2633.
This commit is contained in:
Joel Rosdahl
2018-11-26 14:35:23 +01:00
committed by Sebastian Rittau
parent 84daf7c93b
commit 41d6a2791a

View File

@@ -274,7 +274,7 @@ class datetime(date):
def strptime(cls, date_string: _Text, format: _Text) -> datetime: ...
def utcoffset(self) -> Optional[timedelta]: ...
def tzname(self) -> Optional[str]: ...
def dst(self) -> Optional[int]: ...
def dst(self) -> Optional[timedelta]: ...
def __le__(self, other: datetime) -> bool: ... # type: ignore
def __lt__(self, other: datetime) -> bool: ... # type: ignore
def __ge__(self, other: datetime) -> bool: ... # type: ignore