time.mktime can take a struct_time or a tuple. (#1380)

This commit is contained in:
rchen152
2017-06-01 17:37:13 -07:00
committed by Matthias Kramm
parent 35852bd687
commit 2161f72990

View File

@@ -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()