mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 04:34:33 +08:00
time.mktime can take a struct_time or a tuple. (#1380)
This commit is contained in:
1 parent
35852bd687
commit
2161f72990
1 file changed
+1
-1
+1
-1
@@ -32,7 +32,7 @@ def gmtime(secs: Optional[float] = ...) -> struct_time: ...
|
||||
|
||||
def localtime(secs: Optional[float] = ...) -> struct_time: ...
|
||||
|
||||
def mktime(t: struct_time) -> float:
|
||||
def mktime(t: Union[struct_time, _TIME_TUPLE]) -> float:
|
||||
raise OverflowError()
|
||||
raise ValueError()
|
||||
|
||||
|
||||
Reference in new issue
Block a user