mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
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':
|
||||
|
||||
Reference in New Issue
Block a user