Skip to content
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

Use inspect.getfullargspec instead of getargspec #568

Merged
merged 1 commit into from
Aug 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pydra/engine/specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def _field_metadata(
return attr.NOTHING
return val
elif "callable" in fld.metadata:
call_args = inspect.getargspec(fld.metadata["callable"])
call_args = inspect.getfullargspec(fld.metadata["callable"])
call_args_val = {}
for argnm in call_args.args:
if argnm == "field":
Expand Down
2 changes: 1 addition & 1 deletion pydra/engine/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def _command_pos_args(self, field):
# formatter that creates a custom command argument
# it can thake the value of the filed, all inputs, or the value of other fields.
if "formatter" in field.metadata:
call_args = inspect.getargspec(field.metadata["formatter"])
call_args = inspect.getfullargspec(field.metadata["formatter"])
call_args_val = {}
for argnm in call_args.args:
if argnm == "field":
Expand Down