From 12d348fe672b9e2a81155d362182d26dcc789f8e Mon Sep 17 00:00:00 2001 From: Lorenzo Bolla Date: Wed, 24 Feb 2016 22:19:25 +0000 Subject: [PATCH] Remove mention to internal variables --- stdlib/2.7/calendar.pyi | 10 +++------- stdlib/3/calendar.pyi | 9 +++------ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/stdlib/2.7/calendar.pyi b/stdlib/2.7/calendar.pyi index 567e3a4af..59524b892 100644 --- a/stdlib/2.7/calendar.pyi +++ b/stdlib/2.7/calendar.pyi @@ -5,12 +5,8 @@ YearType = int MonthType = int DayType = int WeekdayType = int - LocaleType = Tuple[Optional[str], Optional[str]] -_colwidth = ... # type: int -_spacing = ... # type: int - class IllegalMonthError(ValueError): def __init__(self, month: MonthType) -> None: ... def __str__(self) -> str: ... @@ -48,7 +44,7 @@ class TextCalendar(Calendar): def formatmonthname(self, theyear: YearType, themonth: MonthType, width: int, withyear: bool = ...) -> str: ... def prmonth(self, theyear: YearType, themonth: MonthType, w: Any=0, l: Any = 0) -> None: ... def formatmonth(self, theyear: YearType, themonth: MonthType, w: int = 0, l: int = 0) -> str: ... - def formatyear(self, theyear: YearType, w: int=2, l: int=1, c: int = 6, m: int = 3) -> str: ... + def formatyear(self, theyear: YearType, w: int = 2, l: int = 1, c: int = 6, m: int = 3) -> str: ... def pryear(self, theyear: YearType, w: Any = 0, l: Any = 0, c: Any = 6, m: Any = 3) -> None: ... class HTMLCalendar(Calendar): @@ -78,6 +74,6 @@ class LocaleHTMLCalendar(HTMLCalendar): c = ... # type: TextCalendar def setfirstweekday(firstweekday: WeekdayType) -> None: ... -def format(cols: int, colwidth: int=_colwidth, spacing: int = _spacing) -> str: ... -def formatstring(cols: int, colwidth: int = _colwidth, spacing: int = _spacing) -> str: ... +def format(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ... +def formatstring(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ... def timegm(tuple: Tuple[int]) -> int: ... diff --git a/stdlib/3/calendar.pyi b/stdlib/3/calendar.pyi index b304ad143..c8e4cefd8 100644 --- a/stdlib/3/calendar.pyi +++ b/stdlib/3/calendar.pyi @@ -8,9 +8,6 @@ WeekdayType = int LocaleType = Tuple[Optional[str], Optional[str]] -_colwidth = ... # type: int -_spacing = ... # type: int - class IllegalMonthError(ValueError): def __init__(self, month: MonthType) -> None: ... def __str__(self) -> str: ... @@ -48,7 +45,7 @@ class TextCalendar(Calendar): def formatmonthname(self, theyear: YearType, themonth: MonthType, width: int, withyear: bool = ...) -> str: ... def prmonth(self, theyear: YearType, themonth: MonthType, w: Any=0, l: Any = 0) -> None: ... def formatmonth(self, theyear: YearType, themonth: MonthType, w: int = 0, l: int = 0) -> str: ... - def formatyear(self, theyear: YearType, w: int=2, l: int=1, c: int = 6, m: int = 3) -> str: ... + def formatyear(self, theyear: YearType, w: int = 2, l: int = 1, c: int = 6, m: int = 3) -> str: ... def pryear(self, theyear: YearType, w: Any = 0, l: Any = 0, c: Any = 6, m: Any = 3) -> None: ... class HTMLCalendar(Calendar): @@ -78,6 +75,6 @@ class LocaleHTMLCalendar(HTMLCalendar): c = ... # type: TextCalendar def setfirstweekday(firstweekday: WeekdayType) -> None: ... -def format(cols: int, colwidth: int=_colwidth, spacing: int = _spacing) -> str: ... -def formatstring(cols: int, colwidth: int = _colwidth, spacing: int = _spacing) -> str: ... +def format(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ... +def formatstring(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ... def timegm(tuple: Tuple[int]) -> int: ...