Skip to content

Commit 3df92c7

Browse files
committed
Use Iterable
1 parent fd6a8c7 commit 3df92c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stubs/croniter/croniter/croniter.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import datetime
22
from _typeshed import Unused
3-
from collections.abc import Generator
3+
from collections.abc import Generator, Iterable
44
from re import Match, Pattern
55
from typing import Any, Final, Generic, Literal, Protocol, TypeVar, overload, type_check_only
66
from typing_extensions import Never, Self, TypeAlias
@@ -244,7 +244,7 @@ class croniter(Generic[_R_co]):
244244
second_at_beginning: bool = False,
245245
from_timestamp: float | None = None,
246246
strict: bool = False,
247-
strict_year: int | list[int] | None = None,
247+
strict_year: int | Iterable[int] | None = None,
248248
) -> tuple[list[ExpandedExpression], dict[str, set[int]]]: ...
249249
@classmethod
250250
def is_valid(
@@ -254,7 +254,7 @@ class croniter(Generic[_R_co]):
254254
encoding: str = "UTF-8",
255255
second_at_beginning: bool = False,
256256
strict: bool = False,
257-
strict_year: int | list[int] | None = None,
257+
strict_year: int | Iterable[int] | None = None,
258258
) -> bool: ...
259259
@classmethod
260260
def match(

0 commit comments

Comments
 (0)