mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 07:15:50 +08:00
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:
1 parent
545be37c40
commit
3dfc606670
1 file changed
+1
-1
@@ -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] = ...,
|
||||
|
||||
Reference in new issue
Block a user