mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
don't check builtin signatures
This commit is contained in:
1 parent
7ba97f00f6
commit
cc2c46b1b7
1 file changed
+3
-1
@@ -31,7 +31,9 @@ def attr_is_not_inherited(type_, attr):
|
||||
|
||||
|
||||
def extra_info(obj):
|
||||
if callable(obj):
|
||||
# RustPython doesn't support __text_signature__ for getting signatures of builtins
|
||||
# https://github.com/RustPython/RustPython/issues/2410
|
||||
if callable(obj) and not inspect._signature_is_builtin(obj):
|
||||
try:
|
||||
sig = str(inspect.signature(obj))
|
||||
# remove function memory addresses
|
||||
|
||||
Reference in new issue
Block a user