From aee19f54f6fe45f6b3c906987941e5a8af4468e9 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Thu, 16 May 2019 21:08:15 +0100 Subject: bpo-36751: Undeprecate getfullargspec (GH-13245) --- Lib/inspect.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Lib/inspect.py') diff --git a/Lib/inspect.py b/Lib/inspect.py index 6c3027987b..a4f28f7557 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -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` # -- cgit v1.2.1