mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Make calendar.timegm stub accept struct_time
This commit is contained in:
committed by
Łukasz Langa
parent
6008b9dbb1
commit
cd2d08970d
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user