8000 enabled test_package unittests by tclose · Pull Request #20 · nipype/nipype2pydra · GitHub
[go: up one dir, main page]

Skip to content

enabled test_package unittests #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 20, 2024
Prev Previous commit
Next Next commit
fixed up name of generic types in type_repr_
  • Loading branch information
tclose committed May 20, 2024
commit ddb4d900758522b902c80fb912a7936aaaf2265f
6 changes: 5 additions & 1 deletion nipype2pydra/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ def type_repr_(t):
+ "]"
)
if t in (ty.Any, ty.Union, ty.List, ty.Tuple):
return f"ty.{t.__name__}"
try:
t_name = t.__name__
except AttributeError:
t_name = t._name
return f"ty.{t_name}"
elif issubclass(t, Field):
return t.primitive.__name__
elif issubclass(t, FileSet):
Expand Down
0