Skip to content

Commit

Permalink
Switch back to using typing.Union as "a | b" is not supported on py 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
cuu508 committed Nov 4, 2024
1 parent 5e27af3 commit e8bc4be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cronsim/cronsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
from datetime import timedelta as td
from datetime import timezone
from enum import IntEnum
from typing import cast
from typing import cast, Union

UTC = timezone.utc

SpecItem = int | tuple[int, int]
SpecItem = Union[int, tuple[int, int]]

RANGES = [
range(0, 60),
Expand Down

0 comments on commit e8bc4be

Please sign in to comment.