mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-25 05:11:09 +08:00
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:
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user