Skip to content

Commit ef3f7e0

Browse files
committed
fixed up typing bug that was showing up for Enum types
1 parent 9710906 commit ef3f7e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/utils/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def is_instance(
549549
candidates : type or ty.Iterable[type]
550550
the candidate types to check the object against
551551
"""
552-
if not isinstance(candidates, ty.Iterable):
552+
if not isinstance(candidates, (tuple, list)):
553553
candidates = [candidates]
554554
for candidate in candidates:
555555
if candidate is ty.Any:

0 commit comments

Comments
 (0)