Replace deprecated inspect.getargspec
inspect.getargspec was deprecated since Python 3.0 and inspect.getfullargspec is its replacement with correct handling of function annotations and keyword-only parameters[1]. [1] https://docs.python.org/3/library/inspect.html#inspect.getargspec Change-Id: I1d72d3879a8aa12fdbe722f7b2370b44b9fd71e7
This commit is contained in:
parent
303258fbfc
commit
d4374c2254
@ -1194,11 +1194,11 @@ class ModuleParser(object):
|
||||
elif inspect.isfunction(member):
|
||||
self._notify(APISignature.SignatureType.FUNCTION,
|
||||
fqn, member,
|
||||
arg_spec=inspect.getargspec(member))
|
||||
arg_spec=inspect.getfullargspec(member))
|
||||
elif inspect.ismethod(member):
|
||||
self._notify(APISignature.SignatureType.METHOD,
|
||||
fqn, member,
|
||||
arg_spec=inspect.getargspec(member))
|
||||
arg_spec=inspect.getfullargspec(member))
|
||||
else:
|
||||
event = (APISignature.SignatureType.MODULE_ATTR
|
||||
if inspect.ismodule(module)
|
||||
|
Loading…
Reference in New Issue
Block a user