Skip to content

Commit 666e354

Browse files
authored
Fix false positives wrt. TextCalendar (#15661)
1 parent 9de7720 commit 666e354

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

stdlib/calendar.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ class Calendar:
8888
def itermonthdays4(self, year: int, month: int) -> Iterable[tuple[int, int, int, int]]: ...
8989

9090
class TextCalendar(Calendar):
91-
def prweek(self, theweek: int, width: int) -> None: ...
91+
def prweek(self, theweek: Iterable[tuple[int, int]], width: int) -> None: ...
9292
def formatday(self, day: int, weekday: int, width: int) -> str: ...
93-
def formatweek(self, theweek: int, width: int) -> str: ...
93+
def formatweek(self, theweek: Iterable[tuple[int, int]], width: int) -> str: ...
9494
def formatweekday(self, day: int, width: int) -> str: ...
9595
def formatweekheader(self, width: int) -> str: ...
9696
def formatmonthname(self, theyear: int, themonth: int, width: int, withyear: bool = True) -> str: ...
@@ -145,7 +145,7 @@ c: TextCalendar
145145

146146
def setfirstweekday(firstweekday: int) -> None: ...
147147
def format(cols: int, colwidth: int = 20, spacing: int = 6) -> str: ...
148-
def formatstring(cols: int, colwidth: int = 20, spacing: int = 6) -> str: ...
148+
def formatstring(cols: Iterable[str], colwidth: int = 20, spacing: int = 6) -> str: ...
149149
def timegm(tuple: tuple[int, ...] | struct_time) -> int: ...
150150

151151
# Data attributes

0 commit comments

Comments
 (0)