Skip to content

Commit

Permalink
ENH: Use getfullargspec instead of deprecated getargspec
Browse files Browse the repository at this point in the history
Use `getfullargspec` instead of deprecated `getargspec` to get the names
and default values of function parameters.

Fixes:
```
inspect. getargspec() is deprecated since Python 3.0,
 use inspect. signature() or inspect. getfullargspec()
```

reported by IDE inspection tool.
  • Loading branch information
jhlegarreta committed Jan 24, 2025
1 parent 096f980 commit 85d6107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tract_querier/tract_math/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def wrapper(*input_args):
args, options_dict = find_optional_args(input_args)

total_args = len(args)
argspec = inspect.getargspec(func)
argspec = inspect.getfullargspec(func)
# Subtract 1 for implicit options_dict
func_total_args = len(argspec.args) - 1

Expand Down

0 comments on commit 85d6107

Please sign in to comment.