Correct return type of time.dst (#3964)

`time.dst` either returns None or the result of tzinfo.dst(None), which
returns datetime.timedelta
This commit is contained in:
Paul Ganssle
2020-05-03 17:13:22 -04:00
committed by GitHub
parent 545be37c40
commit 3dfc606670

View File

@@ -130,7 +130,7 @@ class time:
def __format__(self, fmt: AnyStr) -> AnyStr: ...
def utcoffset(self) -> Optional[timedelta]: ...
def tzname(self) -> Optional[str]: ...
def dst(self) -> Optional[int]: ...
def dst(self) -> Optional[timedelta]: ...
if sys.version_info >= (3, 6):
def replace(self, hour: int = ..., minute: int = ..., second: int = ...,
microsecond: int = ..., tzinfo: Optional[_tzinfo] = ...,