Skip to content

Commit

Permalink
croniter: add new encoding parameter to is_valid (#11808)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Apr 22, 2024
1 parent 77d69b0 commit e974246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/croniter/croniter/croniter.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class croniter(Iterator[Any]):
@classmethod
def expand(cls, expr_format: str, hash_id: bytes | None = None) -> tuple[list[list[str]], dict[str, set[int]]]: ...
@classmethod
def is_valid(cls, expression: str, hash_id: bytes | None = None) -> bool: ...
def is_valid(cls, expression: str, hash_id: bytes | None = None, encoding: str = "UTF-8") -> bool: ...
@classmethod
def match(cls, cron_expression: str, testdate: float | datetime.datetime | None, day_or: bool = True) -> bool: ...
@classmethod
Expand Down

0 comments on commit e974246

Please sign in to comment.