Skip to content

Commit

Permalink
Merge pull request #2341 from aryabhatta-dey/update-docs
Browse files Browse the repository at this point in the history
Fix SyntaxError: invalid syntax in doc/fill_gpi.py
  • Loading branch information
mesmith75 authored May 22, 2024
2 parents 1a13d49 + 57664aa commit 2e42606
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, *_ = 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 2e42606

Please sign in to comment.