Skip to content

Commit d0c044c

Browse files
committed
.
1 parent b515525 commit d0c044c

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

stdlib/calendar.pyi

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import datetime
22
import enum
33
import sys
44
from _typeshed import Unused
5-
from collections.abc import Iterable, Iterator
5+
from collections.abc import Iterable
66
from time import struct_time
77
from typing import ClassVar, Final, TypeAlias, overload
88

@@ -160,17 +160,23 @@ 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_day:
163+
class _localized_month:
164164
format: str
165165
def __init__(self, format: str) -> None: ...
166166
@overload
167167
def __getitem__(self, i: int) -> str: ...
168168
@overload
169169
def __getitem__(self, i: slice) -> list[str]: ...
170-
def __iter__(self) -> Iterator[str]: ...
171170
def __len__(self) -> int: ...
172171

173-
class _localized_month(_localized_day): ...
172+
class _localized_day:
173+
format: str
174+
def __init__(self, format: str) -> None: ...
175+
@overload
176+
def __getitem__(self, i: int) -> str: ...
177+
@overload
178+
def __getitem__(self, i: slice) -> list[str]: ...
179+
def __len__(self) -> int: ...
174180

175181
day_name: _localized_day
176182
day_abbr: _localized_day

0 commit comments

Comments
 (0)