mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
add calendar data attributes (#751)
This commit is contained in:
committed by
Guido van Rossum
parent
0392ccaa9c
commit
6887edebda
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Iterable, Optional, Tuple
|
||||
from typing import Any, Iterable, Optional, Tuple, Sequence
|
||||
import datetime
|
||||
|
||||
LocaleType = Tuple[Optional[str], Optional[str]]
|
||||
@@ -74,6 +74,12 @@ def format(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ...
|
||||
def formatstring(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ...
|
||||
def timegm(tuple: Tuple[int, ...]) -> int: ...
|
||||
|
||||
# Data attributes
|
||||
day_name = ... # type: Sequence[str]
|
||||
day_abbr = ... # type: Sequence[str]
|
||||
month_name = ... # type: Sequence[str]
|
||||
month_abbr = ... # type: Sequence[str]
|
||||
|
||||
# Below constants are not in docs or __all__, but enough people have used them
|
||||
# they are now effectively public.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Iterable, Optional, Tuple
|
||||
from typing import Any, Iterable, Optional, Tuple, Sequence
|
||||
import datetime
|
||||
|
||||
LocaleType = Tuple[Optional[str], Optional[str]]
|
||||
@@ -74,6 +74,12 @@ def format(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ...
|
||||
def formatstring(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ...
|
||||
def timegm(tuple: Tuple[int, ...]) -> int: ...
|
||||
|
||||
# Data attributes
|
||||
day_name = ... # type: Sequence[str]
|
||||
day_abbr = ... # type: Sequence[str]
|
||||
month_name = ... # type: Sequence[str]
|
||||
month_abbr = ... # type: Sequence[str]
|
||||
|
||||
# Below constants are not in docs or __all__, but enough people have used them
|
||||
# they are now effectively public.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user