mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 04:11:28 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -16,7 +16,7 @@ class IllegalWeekdayError(ValueError):
|
||||
def isleap(year: int) -> bool: ...
|
||||
def leapdays(y1: int, y2: int) -> int: ...
|
||||
def weekday(year: int, month: int, day: int) -> int: ...
|
||||
def monthrange(year: int, month: int) -> Tuple[int, int]: ...
|
||||
def monthrange(year: int, month: int) -> tuple[int, int]: ...
|
||||
|
||||
class Calendar:
|
||||
firstweekday: int
|
||||
@@ -25,17 +25,17 @@ class Calendar:
|
||||
def setfirstweekday(self, firstweekday: int) -> None: ...
|
||||
def iterweekdays(self) -> Iterable[int]: ...
|
||||
def itermonthdates(self, year: int, month: int) -> Iterable[datetime.date]: ...
|
||||
def itermonthdays2(self, year: int, month: int) -> Iterable[Tuple[int, int]]: ...
|
||||
def itermonthdays2(self, year: int, month: int) -> Iterable[tuple[int, int]]: ...
|
||||
def itermonthdays(self, year: int, month: int) -> Iterable[int]: ...
|
||||
def monthdatescalendar(self, year: int, month: int) -> list[list[datetime.date]]: ...
|
||||
def monthdays2calendar(self, year: int, month: int) -> list[list[Tuple[int, int]]]: ...
|
||||
def monthdays2calendar(self, year: int, month: int) -> list[list[tuple[int, int]]]: ...
|
||||
def monthdayscalendar(self, year: int, month: int) -> list[list[int]]: ...
|
||||
def yeardatescalendar(self, year: int, width: int = ...) -> list[list[int]]: ...
|
||||
def yeardays2calendar(self, year: int, width: int = ...) -> list[list[Tuple[int, int]]]: ...
|
||||
def yeardays2calendar(self, year: int, width: int = ...) -> list[list[tuple[int, int]]]: ...
|
||||
def yeardayscalendar(self, year: int, width: int = ...) -> list[list[int]]: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
def itermonthdays3(self, year: int, month: int) -> Iterable[Tuple[int, int, int]]: ...
|
||||
def itermonthdays4(self, year: int, month: int) -> Iterable[Tuple[int, int, int, int]]: ...
|
||||
def itermonthdays3(self, year: int, month: int) -> Iterable[tuple[int, int, int]]: ...
|
||||
def itermonthdays4(self, year: int, month: int) -> Iterable[tuple[int, int, int, int]]: ...
|
||||
|
||||
class TextCalendar(Calendar):
|
||||
def prweek(self, theweek: int, width: int) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user