Add itermonthdays3 and itermonthdays4, fix incorrect 'cssclass_today' (#2825)

Closes #2806
This commit is contained in:
Sean McLemon
2019-03-05 20:12:57 +01:00
committed by Sebastian Rittau
parent 17cd91eeb3
commit e0211269d1

View File

@@ -33,6 +33,9 @@ class Calendar:
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]]: ...
class TextCalendar(Calendar):
def prweek(self, theweek: int, width: int) -> None: ...
@@ -67,7 +70,7 @@ class HTMLCalendar(Calendar):
def formatyearpage(self, theyear: int, width: int = ..., css: Optional[str] = ..., encoding: Optional[str] = ...) -> str: ...
if sys.version_info >= (3, 7):
cssclasses: List[str]
cssclass_today: str
cssclass_noday: str
cssclasses_weekday_head: List[str]
cssclass_month_head: str
cssclass_month: str