mirror of
https://github.com/python/cpython.git
synced 2025-08-23 02:04:56 +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
|
@ -3975,6 +3975,11 @@ dummy_func(
|
|||
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