mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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 d5d2b45469
This commit is contained in:
parent
1a9f0d8efd
commit
18029d80bd
1 changed files with 1 additions and 1 deletions
|
|
@ -1112,7 +1112,7 @@ def getfullargspec(func):
|
|||
"""
|
||||
|
||||
warnings.warn("Use inspect.signature() instead of inspect.getfullargspec()",
|
||||
DeprecationWarning)
|
||||
DeprecationWarning, stacklevel=2)
|
||||
try:
|
||||
# Re: `skip_bound_arg=False`
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue