Skip to content

Commit

Permalink
adopted ghislain's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Apr 5, 2024
1 parent 290618e commit a7ac191
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pydra/utils/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
# Python < 3.8
from typing_extensions import get_origin, get_args # type: ignore

try:
if sys.version_info >= (3, 10):
UNION_TYPES = (ty.Union, types.UnionType)
except AttributeError:
UNION_TYPES = (ty.Union,) # Python < 3.10
else:
UNION_TYPES = (ty.Union,)

logger = logging.getLogger("pydra")

Expand Down

0 comments on commit a7ac191

Please sign in to comment.