Skip to content
Prev Previous commit
Next Next commit
Fix invalid method signature message
  • Loading branch information
louisom committed May 4, 2017
commit 13172f1c3d1feae6b055b516027d1f128b3c5e18
2 changes: 1 addition & 1 deletion Lib/idlelib/calltips.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def get_argspec(ob):
try:
argspec = str(inspect.signature(fob))
except ValueError:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must get and test error message.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Condition return on error message

argspec = "This function has an invalid method signature"
argspec = _invalid_method
return argspec

if isinstance(ob, type):
Expand Down