@@ -4733,19 +4733,14 @@ def test_builtins_have_signatures(self):
4733
4733
# These have unrepresentable parameter default values of NULL
4734
4734
needs_null = {"anext" }
4735
4735
no_signature |= needs_null
4736
- # These need PEP 457 groups or a signature change to accept None
4737
- needs_semantic_update = {"round" }
4738
- no_signature |= needs_semantic_update
4739
4736
# These need *args support in Argument Clinic
4740
- needs_varargs = {"breakpoint" , "min" , "max" , "print" ,
4741
- "__build_class__" }
4737
+ needs_varargs = {"breakpoint" , "min" , "max" , "__build_class__" }
4742
4738
no_signature |= needs_varargs
4743
- # These simply weren't covered in the initial AC conversion
4744
- # for builtin callables
4745
- not_converted_yet = {"open" , "__import__" }
4746
- no_signature |= not_converted_yet
4747
4739
# These builtin types are expected to provide introspection info
4748
- types_with_signatures = set ()
4740
+ types_with_signatures = {
4741
+ 'complex' , 'enumerate' , 'float' , 'list' , 'memoryview' , 'object' ,
4742
+ 'property' , 'reversed' , 'tuple' ,
4743
+ }
4749
4744
# Check the signatures we expect to be there
4750
4745
ns = vars (builtins )
4751
4746
for name , obj in sorted (ns .items ()):
@@ -4764,9 +4759,9 @@ def test_builtins_have_signatures(self):
4764
4759
# This ensures this test will start failing as more signatures are
4765
4760
# added, so the affected items can be moved into the scope of the
4766
4761
# regression test above
4767
- for name in no_signature :
4762
+ for name in no_signature - needs_null :
4768
4763
with self .subTest (builtin = name ):
4769
- self .assertIsNone (obj .__text_signature__ )
4764
+ self .assertIsNone (ns [ name ] .__text_signature__ )
4770
4765
4771
4766
def test_python_function_override_signature (self ):
4772
4767
def func (* args , ** kwargs ):
0 commit comments