gh-119180: PEP 649 compiler changes (#119361)

This commit is contained in:
Jelle Zijlstra
2024-06-11 07:06:49 -06:00
committed by GitHub
parent 02c1dfff07
commit 9b8611eeea
28 changed files with 610 additions and 329 deletions

View File

@@ -4061,6 +4061,11 @@
assert(func_obj->func_defaults == NULL);
func_obj->func_defaults = attr;
break;
case MAKE_FUNCTION_ANNOTATE:
assert(PyCallable_Check(attr));
assert(func_obj->func_annotate == NULL);
func_obj->func_annotate = attr;
break;
default:
Py_UNREACHABLE();
}