Commit 18029d80 authored by Thomas A Caswell's avatar Thomas A Caswell Committed by Pablo Galindo

MNT: set stacklevel in the getfullargspec deprecation warning to 2 (GH-13029)

This is consistent with the rest of the `warnings.warn` usage in the
inspect.py module and aids identifying code that needs to be fixed.

This warning came in via d5d2b454
parent 1a9f0d8e
...@@ -1112,7 +1112,7 @@ def getfullargspec(func): ...@@ -1112,7 +1112,7 @@ def getfullargspec(func):
""" """
warnings.warn("Use inspect.signature() instead of inspect.getfullargspec()", warnings.warn("Use inspect.signature() instead of inspect.getfullargspec()",
DeprecationWarning) DeprecationWarning, stacklevel=2)
try: try:
# Re: `skip_bound_arg=False` # Re: `skip_bound_arg=False`
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment