aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2024-06-11 07:06:49 -0600
committerGitHub <noreply@github.com>2024-06-11 13:06:49 +0000
commit9b8611eeea172cd4aa626ccd1ca333dc4093cd8c (patch)
tree93491345df33ac20e4c4e87f226ff7a7e781e465 /Python/executor_cases.c.h
parent02c1dfff073a3dd6ce34a11b038defde291c2203 (diff)
downloadcpython-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.h5
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();
}