Skip to content

Commit e58edac

Browse files
committed
fixed up a couple of mypy errors
1 parent 0dd8693 commit e58edac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pydra/utils/typing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ def expand_and_check(tp, pattern: ty.Union[type, tuple]):
341341
self.check_coercible(tp_origin, pattern_origin)
342342
if issubclass(pattern_origin, ty.Mapping):
343343
return check_mapping(tp_args, pattern_args)
344-
if issubclass(pattern_origin, ty.Tuple):
345-
if not issubclass(tp_origin, ty.Tuple):
344+
if issubclass(pattern_origin, tuple):
345+
if not issubclass(tp_origin, tuple):
346346
assert len(tp_args) == 1
347347
tp_args += (Ellipsis,)
348348
return check_tuple(tp_args, pattern_args)
@@ -598,7 +598,7 @@ def is_subclass(
598598
return True
599599
else:
600600
if klass is ty.Any:
601-
if ty.Any in candidates:
601+
if ty.Any in candidates: # type: ignore
602602
return True
603603
else:
604604
return any_ok

0 commit comments

Comments
 (0)