Skip to content

Commit 383387e

Browse files
committed
calendar: fix iteration
Fixes #15826
1 parent df45287 commit 383387e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stdlib/calendar.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def formatstring(cols: Iterable[str], colwidth: int = 20, spacing: int = 6) -> s
160160
def timegm(tuple: tuple[int, ...] | struct_time) -> int: ...
161161

162162
# Data attributes
163-
class _localized_month:
163+
class _localized_month(Iterable[int]):
164164
format: str
165165
def __init__(self, format: str) -> None: ...
166166

@@ -171,7 +171,7 @@ class _localized_month:
171171

172172
def __len__(self) -> int: ...
173173

174-
class _localized_day:
174+
class _localized_day(Iterable[int]):
175175
format: str
176176
def __init__(self, format: str) -> None: ...
177177

0 commit comments

Comments
 (0)