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
This commit is contained in:
Max Payton
2016-06-03 16:10:09 -07:00
parent 25a45d6daf
commit c8f0669ee4
2 changed files with 2 additions and 2 deletions

View File

@@ -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: ...

View File

@@ -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: ...