summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2023-09-29 02:08:04 (GMT)
committerGitHub <noreply@github.com>2023-09-29 02:08:04 (GMT)
commit7dc2c5093ef027aab57bca953ac2d6477a4a440b (patch)
treeb0277506d867356ccc983b4abfc4caab59cd5d5d /Modules
parent2e37a38bcbfbe1357436e030538290e7d00b668d (diff)
downloadcpython-7dc2c5093ef027aab57bca953ac2d6477a4a440b.zip
cpython-7dc2c5093ef027aab57bca953ac2d6477a4a440b.tar.gz
cpython-7dc2c5093ef027aab57bca953ac2d6477a4a440b.tar.bz2
gh-110045: Update symtable module for PEP 695 (#110066)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/symtablemodule.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/symtablemodule.c b/Modules/symtablemodule.c
index dba8003..ddc9ac3 100644
--- a/Modules/symtablemodule.c
+++ b/Modules/symtablemodule.c
@@ -86,6 +86,14 @@ symtable_init_constants(PyObject *m)
if (PyModule_AddIntConstant(m, "TYPE_CLASS", ClassBlock) < 0) return -1;
if (PyModule_AddIntConstant(m, "TYPE_MODULE", ModuleBlock) < 0)
return -1;
+ if (PyModule_AddIntConstant(m, "TYPE_ANNOTATION", AnnotationBlock) < 0)
+ return -1;
+ if (PyModule_AddIntConstant(m, "TYPE_TYPE_VAR_BOUND", TypeVarBoundBlock) < 0)
+ return -1;
+ if (PyModule_AddIntConstant(m, "TYPE_TYPE_ALIAS", TypeAliasBlock) < 0)
+ return -1;
+ if (PyModule_AddIntConstant(m, "TYPE_TYPE_PARAM", TypeParamBlock) < 0)
+ return -1;
if (PyModule_AddIntMacro(m, LOCAL) < 0) return -1;
if (PyModule_AddIntMacro(m, GLOBAL_EXPLICIT) < 0) return -1;