croniter: add new encoding parameter to is_valid (#11808)

This commit is contained in:
Alex Waygood
2024-04-22 11:31:04 +01:00
committed by GitHub
parent 77d69b0622
commit e974246714

View File

@@ -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