diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2024-06-11 07:06:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 13:06:49 +0000 |
commit | 9b8611eeea172cd4aa626ccd1ca333dc4093cd8c (patch) | |
tree | 93491345df33ac20e4c4e87f226ff7a7e781e465 /Python/executor_cases.c.h | |
parent | 02c1dfff073a3dd6ce34a11b038defde291c2203 (diff) | |
download | cpython-9b8611eeea172cd4aa626ccd1ca333dc4093cd8c.tar.gz cpython-9b8611eeea172cd4aa626ccd1ca333dc4093cd8c.zip |
gh-119180: PEP 649 compiler changes (#119361)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r-- | Python/executor_cases.c.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index bab629684c5..470c82d938a 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -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(); } |