Skip to content

Commit

Permalink
Replace deprecated getargspec with getfullargspec
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthomas23 committed May 2, 2023
1 parent c8adf74 commit b785748
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions datashader/glyphs/glyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ def _expand_aggs_and_cols(append, ndims, antialiased):
warnings.simplefilter("ignore")
try:
# Numba keeps original function around as append.py_func
append_args = inspect.getargspec(append.py_func).args
append_args = inspect.getfullargspec(append.py_func).args
except (TypeError, AttributeError):
# Treat append as a normal python function
append_args = inspect.getargspec(append).args
append_args = inspect.getfullargspec(append).args

# Get number of arguments accepted by append
append_arglen = len(append_args)
Expand Down
2 changes: 1 addition & 1 deletion datashader/tests/test_macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def function_with_vararg_call_numba(a, b, *others):
def get_args(fn):
with warnings.catch_warnings():
warnings.simplefilter("ignore")
spec = inspect.getargspec(fn)
spec = inspect.getfullargspec(fn)

args = spec.args
if spec.varargs:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'colorcet',
'dask',
'datashape',
'numba >=0.51',
'numba ==0.57.0rc1',
'numpy',
'pandas <2',
'param',
Expand Down

0 comments on commit b785748

Please sign in to comment.