Skip to content

Commit

Permalink
[croniter] Update to 3.0.4 (#12909)
Browse files Browse the repository at this point in the history
  • Loading branch information
srittau authored Oct 26, 2024
1 parent efccd74 commit ec1c327
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/croniter/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "3.0.3" # keep micro version pinned, changes often
version = "3.0.4"
upstream_repository = "https://github.com/kiorky/croniter"
1 change: 1 addition & 0 deletions stubs/croniter/croniter/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .croniter import (
OVERFLOW32B_MODE as OVERFLOW32B_MODE,
CroniterBadCronError as CroniterBadCronError,
CroniterBadDateError as CroniterBadDateError,
CroniterBadTypeRangeError as CroniterBadTypeRangeError,
Expand Down
7 changes: 7 additions & 0 deletions stubs/croniter/croniter/croniter.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ from typing_extensions import Never, Self, TypeAlias
_RetType: TypeAlias = type[float | datetime.datetime]
_Expressions: TypeAlias = list[str] # fixed-length list of 5 or 6 strings

def is_32bit() -> bool: ...

OVERFLOW32B_MODE: Final[bool]

EPOCH: Final[datetime.datetime]
M_ALPHAS: Final[dict[str, int]]
DOW_ALPHAS: Final[dict[str, int]]
ALPHAS: Final[dict[str, int]]
Expand Down Expand Up @@ -38,6 +43,8 @@ CRON_FIELDS: Final[dict[str | int, tuple[int, ...]]]
VALID_LEN_EXPRESSION: Final[set[int]]
EXPRESSIONS: dict[tuple[str, bytes], _Expressions]

UTC_DT: Final[datetime.timezone]

def timedelta_to_seconds(td: datetime.timedelta) -> float: ...

class CroniterError(ValueError): ...
Expand Down

0 comments on commit ec1c327

Please sign in to comment.