@@ -4285,19 +4285,14 @@ def test_builtins_have_signatures(self):
4285
4285
# These have unrepresentable parameter default values of NULL
4286
4286
needs_null = {"anext" }
4287
4287
no_signature |= needs_null
4288
- # These need PEP 457 groups or a signature change to accept None
4289
- needs_semantic_update = {"round" }
4290
- no_signature |= needs_semantic_update
4291
4288
# These need *args support in Argument Clinic
4292
- needs_varargs = {"breakpoint" , "min" , "max" , "print" ,
4293
- "__build_class__" }
4289
+ needs_varargs = {"breakpoint" , "min" , "max" , "__build_class__" }
4294
4290
no_signature |= needs_varargs
4295
- # These simply weren't covered in the initial AC conversion
4296
- # for builtin callables
4297
- not_converted_yet = {"open" , "__import__" }
4298
- no_signature |= not_converted_yet
4299
4291
# These builtin types are expected to provide introspection info
4300
- types_with_signatures = set ()
4292
+ types_with_signatures = {
4293
+ 'complex' , 'enumerate' , 'float' , 'list' , 'memoryview' , 'object' ,
4294
+ 'property' , 'reversed' , 'tuple' ,
4295
+ }
4301
4296
# Check the signatures we expect to be there
4302
4297
ns = vars (builtins )
4303
4298
for name , obj in sorted (ns .items ()):
@@ -4316,9 +4311,9 @@ def test_builtins_have_signatures(self):
4316
4311
# This ensures this test will start failing as more signatures are
4317
4312
# added, so the affected items can be moved into the scope of the
4318
4313
# regression test above
4319
- for name in no_signature :
4314
+ for name in no_signature - needs_null :
4320
4315
with self .subTest (builtin = name ):
4321
- self .assertIsNone (obj .__text_signature__ )
4316
+ self .assertIsNone (ns [ name ] .__text_signature__ )
4322
4317
4323
4318
def test_python_function_override_signature (self ):
4324
4319
def func (* args , ** kwargs ):
0 commit comments