From c8f0669ee4793274a42b396d0bd5d33f14057526 Mon Sep 17 00:00:00 2001 From: Max Payton Date: Fri, 3 Jun 2016 16:10:09 -0700 Subject: [PATCH] Update calendar.pyi timegm to accept arbitrary length tuples timegm takes struct_time objects, which are NamedTuples that have 9 elements by default That would not take Tuple[Int], so typeshed would report errors --- stdlib/2.7/calendar.pyi | 2 +- stdlib/3/calendar.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2.7/calendar.pyi b/stdlib/2.7/calendar.pyi index d5d181387..e5ee51b2a 100644 --- a/stdlib/2.7/calendar.pyi +++ b/stdlib/2.7/calendar.pyi @@ -72,4 +72,4 @@ c = ... # type: TextCalendar def setfirstweekday(firstweekday: int) -> None: ... def format(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ... def formatstring(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ... -def timegm(tuple: Tuple[int]) -> int: ... +def timegm(tuple: Tuple[int, ...]) -> int: ... diff --git a/stdlib/3/calendar.pyi b/stdlib/3/calendar.pyi index b5de564f5..632ef2b92 100644 --- a/stdlib/3/calendar.pyi +++ b/stdlib/3/calendar.pyi @@ -72,4 +72,4 @@ c = ... # type: TextCalendar def setfirstweekday(firstweekday: int) -> None: ... def format(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ... def formatstring(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ... -def timegm(tuple: Tuple[int]) -> int: ... +def timegm(tuple: Tuple[int, ...]) -> int: ...