diff --git a/stdlib/3/calendar.pyi b/stdlib/3/calendar.pyi index 80848fd25..a9ce68684 100644 --- a/stdlib/3/calendar.pyi +++ b/stdlib/3/calendar.pyi @@ -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]