diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2023-09-29 02:08:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-29 02:08:04 (GMT) |
commit | 7dc2c5093ef027aab57bca953ac2d6477a4a440b (patch) | |
tree | b0277506d867356ccc983b4abfc4caab59cd5d5d /Modules | |
parent | 2e37a38bcbfbe1357436e030538290e7d00b668d (diff) | |
download | cpython-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.c | 8 |
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; |