Skip to content

Commit

Permalink
modified for python-3.9
Browse files Browse the repository at this point in the history
* do not yet use | for building union types as this is 3.10-specific
  • Loading branch information
parmentelat committed Sep 5, 2022
1 parent 702b66d commit b30df52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion asynciojobs/purescheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
from .watch import Watch
from .dotstyle import DotStyle

Schedulable = AbstractJob | Sequence
# starting with Python-3.10, we could write this
# Schedulable = AbstractJob | Sequence
# however we'll wait a little so as to not break compat
from typing import Union
Schedulable = Union[AbstractJob, Sequence]

#
# will hopefully go away some day
Expand Down

0 comments on commit b30df52

Please sign in to comment.