mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
bpo-36751: Undeprecate getfullargspec (GH-13245)
This commit is contained in:
parent
54b43bb3bb
commit
aee19f54f6
5 changed files with 20 additions and 60 deletions
|
|
@ -1103,16 +1103,10 @@ def getfullargspec(func):
|
|||
'kwonlydefaults' is a dictionary mapping names from kwonlyargs to defaults.
|
||||
'annotations' is a dictionary mapping parameter names to annotations.
|
||||
|
||||
.. deprecated:: 3.8
|
||||
Use inspect.signature() instead of inspect.getfullargspec().
|
||||
|
||||
Notable differences from inspect.signature():
|
||||
- the "self" parameter is always reported, even for bound methods
|
||||
- wrapper chains defined by __wrapped__ *not* unwrapped automatically
|
||||
"""
|
||||
|
||||
warnings.warn("Use inspect.signature() instead of inspect.getfullargspec()",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
try:
|
||||
# Re: `skip_bound_arg=False`
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue