mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Update introspect.py
Adds a check to determine if getfullargspec should be used. This is added in Py3 to get elements like type annotations.
This commit is contained in:
@@ -175,7 +175,7 @@ def getCallTip(command='', locals=None):
|
||||
pass
|
||||
elif inspect.isfunction(obj):
|
||||
# tip1 is a string like: "getCallTip(command='', locals=None)"
|
||||
argspec = inspect.getargspec(obj)
|
||||
argspec = inspect.getargspec(obj) if not PY3 else inspect.getfullargspec(obj)
|
||||
argspec = inspect.formatargspec(*argspec)
|
||||
if dropSelf:
|
||||
# The first parameter to a method is a reference to an
|
||||
|
||||
Reference in New Issue
Block a user