Skip to content

Commit

Permalink
Fix SyntaxError: invalid syntax in doc/fill_gpi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aryabhatta-dey committed May 20, 2024
1 parent 1ca6bd9 commit d768a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/fill_gpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def signature(func, name=None):
Returns: a string representing its signature as would be written in code
"""
args, varargs, varkw, defaults = inspect.getargspec(func)
args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations = inspect.getfullargspec(func)
defaults = defaults or [] # If there are no defaults, set it to an empty list
defaults = [repr(d) for d in defaults] # Type to get a useful string representing the default

Expand Down

0 comments on commit d768a43

Please sign in to comment.