From 9586411dad15fca521486a4b5454c996e55c6393 Mon Sep 17 00:00:00 2001 From: Alvaro Caceres Date: Thu, 6 Oct 2016 12:19:16 -0500 Subject: [PATCH] Add MONDAY, TUESDAY, ... constants to stdlib/calendar (#586) These are undocumented but enough people seem to use them that they should be considered public --- stdlib/2.7/calendar.pyi | 11 +++++++++++ stdlib/3/calendar.pyi | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/stdlib/2.7/calendar.pyi b/stdlib/2.7/calendar.pyi index cb458acb7..045e912ca 100644 --- a/stdlib/2.7/calendar.pyi +++ b/stdlib/2.7/calendar.pyi @@ -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 diff --git a/stdlib/3/calendar.pyi b/stdlib/3/calendar.pyi index 632ef2b92..3901170ac 100644 --- a/stdlib/3/calendar.pyi +++ b/stdlib/3/calendar.pyi @@ -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