mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Remove mention to internal variables
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user