PY-58002 Parameters info doesn't work in Python Console with Python 3.11

IJ-CR-100278

GitOrigin-RevId: 3fcd579c2e65efde829e5d4cbe3c49323310bc14
This commit is contained in:
Egor Eliseev
2022-12-29 09:43:37 +00:00
committed by intellij-monorepo-bot
parent f63594add9
commit 8a07022c21
@@ -116,6 +116,9 @@ def get_description(obj):
else:
spec_info = getargspec_py2(fob)
argspec = inspect.formatargspec(*spec_info)
except ValueError:
# function/method defined in C for example str.count
argspec = None
fn_name = getattr(fob, '__name__', None)
if isinstance(obj, type) or type(obj).__name__ == 'classobj':