Skip to content

Commit 3203ca6

Browse files
committed
[croniter] Correct nth-weekday mapping types
1 parent d6278d2 commit 3203ca6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎stubs/croniter/croniter/croniter.pyi‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class croniter(Generic[_R_co]):
109109
cur: float
110110

111111
expanded: list[list[str]]
112-
nth_weekday_of_month: dict[str, set[int]]
112+
nth_weekday_of_month: dict[int, set[int | Literal["l"]]]
113113
expressions: _Expressions
114114
nearest_weekday: set[int]
115115
fields: tuple[int, ...]
@@ -255,7 +255,7 @@ class croniter(Generic[_R_co]):
255255
from_timestamp: float | None = None,
256256
strict: bool = False,
257257
strict_year: int | Iterable[int] | None = None,
258-
) -> tuple[list[ExpandedExpression], dict[str, set[int]]]: ...
258+
) -> tuple[list[ExpandedExpression], dict[int, set[int | Literal["l"]]]]: ...
259259
@classmethod
260260
def is_valid(
261261
cls,

0 commit comments

Comments
 (0)