Add MONDAY, TUESDAY, ... constants to stdlib/calendar (#586)

These are undocumented but enough people seem to use them that they
should be considered public
This commit is contained in:
Alvaro Caceres authored and Matthias Kramm committed 2016-10-06 10:19:16 -07:00
1 parent 9e71e54aa9
commit 9586411dad
2 files changed
+22

No files matched your search

+11
View File
@@ -73,3 +73,14 @@ 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: ...
# Below constants are not in docs or __all__, but enough people have used them
# they are now effectively public.
MONDAY = ... # type: int
TUESDAY = ... # type: int
WEDNESDAY = ... # type: int
THURSDAY = ... # type: int
FRIDAY = ... # type: int
SATURDAY = ... # type: int
SUNDAY = ... # type: int