Commit 835e9b22 authored by nimaje's avatar nimaje
Browse files

fix more of calltip by also using types.MethodType directly

--HG--
branch : fix-idlelib.calltip.get_argspec
parent 2d85cc8decd9
Pipeline #25929 passed with stage
in 13 minutes and 24 seconds
......@@ -168,7 +168,7 @@ def get_argspec(ob):
# On pypy more stuff passes isinstance(ob_call, types.MethodType) than on cpython
# so first filter some objects that should be used directly before considering ob_call
if isinstance(ob, type) or isinstance(ob, types.FunctionType):
if isinstance(ob, (type, types.FunctionType, types.MethodType)):
fob = ob
elif isinstance(ob_call, types.MethodType):
fob = ob_call
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment