From cc2c46b1b7cd2a4646c27a63e76d6444e7fc1526 Mon Sep 17 00:00:00 2001 From: boris Date: Thu, 11 Feb 2021 04:08:20 -0500 Subject: [PATCH] don't check builtin signatures --- extra_tests/not_impl_gen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extra_tests/not_impl_gen.py b/extra_tests/not_impl_gen.py index 68c81031a..611e07f8d 100644 --- a/extra_tests/not_impl_gen.py +++ b/extra_tests/not_impl_gen.py @@ -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