mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import datetime
|
||||
import sys
|
||||
from time import struct_time
|
||||
from typing import Any, Iterable, List, Optional, Sequence, Tuple
|
||||
from typing import Any, Iterable, Optional, Sequence, Tuple
|
||||
|
||||
_LocaleType = Tuple[Optional[str], Optional[str]]
|
||||
|
||||
@@ -27,12 +27,12 @@ class Calendar:
|
||||
def itermonthdates(self, year: int, month: int) -> Iterable[datetime.date]: ...
|
||||
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 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 yeardayscalendar(self, year: int, width: int = ...) -> List[List[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 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 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]]: ...
|
||||
@@ -50,7 +50,7 @@ class TextCalendar(Calendar):
|
||||
def pryear(self, theyear: int, w: int = ..., l: int = ..., c: int = ..., m: int = ...) -> None: ...
|
||||
|
||||
def firstweekday() -> int: ...
|
||||
def monthcalendar(year: int, month: int) -> List[List[int]]: ...
|
||||
def monthcalendar(year: int, month: int) -> list[list[int]]: ...
|
||||
def prweek(theweek: int, width: int) -> None: ...
|
||||
def week(theweek: int, width: int) -> str: ...
|
||||
def weekheader(width: int) -> str: ...
|
||||
@@ -69,9 +69,9 @@ class HTMLCalendar(Calendar):
|
||||
def formatyear(self, theyear: int, width: int = ...) -> str: ...
|
||||
def formatyearpage(self, theyear: int, width: int = ..., css: str | None = ..., encoding: str | None = ...) -> str: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
cssclasses: List[str]
|
||||
cssclasses: list[str]
|
||||
cssclass_noday: str
|
||||
cssclasses_weekday_head: List[str]
|
||||
cssclasses_weekday_head: list[str]
|
||||
cssclass_month_head: str
|
||||
cssclass_month: str
|
||||
cssclass_year: str
|
||||
|
||||
Reference in New Issue
Block a user