add calendar data attributes (#751)

This commit is contained in:
Henri Dwyer
2016-12-13 17:58:26 -05:00
committed by Guido van Rossum
parent 0392ccaa9c
commit 6887edebda
2 changed files with 14 additions and 2 deletions

View File

@@ -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.

View File

@@ -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.