Skip to content

Commit

Permalink
Fix: inspect.formatargspec removed in Py3.11 (#1975)
Browse files Browse the repository at this point in the history
  • Loading branch information
kxrob committed Nov 28, 2022
1 parent dcfd66c commit 7638049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pythonwin/pywin/idle/CallTips.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_arg_text(ob):
fob = ob
if inspect.isfunction(fob) or inspect.ismethod(fob):
try:
argText = inspect.formatargspec(*inspect.getfullargspec(fob))
argText = str(inspect.signature(fob))
except:
print("Failed to format the args")
traceback.print_exc()
Expand Down

0 comments on commit 7638049

Please sign in to comment.