From 2161f729904ab8816054691e350bcf105f9daa7f Mon Sep 17 00:00:00 2001 From: rchen152 Date: Thu, 1 Jun 2017 17:37:13 -0700 Subject: [PATCH] time.mktime can take a struct_time or a tuple. (#1380) --- stdlib/2/time.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2/time.pyi b/stdlib/2/time.pyi index 6d2499f62..7a7a71802 100644 --- a/stdlib/2/time.pyi +++ b/stdlib/2/time.pyi @@ -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()