mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
gh-119180: PEP 649 compiler changes (#119361)
This commit is contained in:
parent
02c1dfff07
commit
9b8611eeea
28 changed files with 610 additions and 329 deletions
5
Python/generated_cases.c.h
generated
5
Python/generated_cases.c.h
generated
|
@ -5450,6 +5450,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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue