mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 04:11:28 +08:00
time.mktime can take a struct_time or a tuple. (#1380)
This commit is contained in:
@@ -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