Make calendar.timegm stub accept struct_time

This commit is contained in:
Mohab Usama
2017-01-11 10:08:56 +01:00
committed by Łukasz Langa
parent 6008b9dbb1
commit cd2d08970d

View File

@@ -1,6 +1,9 @@
from typing import Any, Iterable, List, Optional, Tuple, Sequence
import datetime
from time import struct_time
from typing import Any, Iterable, List, Optional, Tuple, Sequence, Union
LocaleType = Tuple[Optional[str], Optional[str]]
class IllegalMonthError(ValueError):
@@ -72,7 +75,7 @@ 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: Union[Tuple[int, ...], struct_time]) -> int: ...
# Data attributes
day_name = ... # type: Sequence[str]