[3.14] Fix dunder name typo in compiler code comment (GH-143374) (#143386)

Fix dunder name typo in compiler code comment (GH-143374)
(cherry picked from commit 6d05e55de0)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
This commit is contained in:
Miss Islington (bot) 2026-01-10 07:51:09 +01:00 committed by GitHub
parent ebe5e216c8
commit fca010da50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -628,7 +628,7 @@ _PyCompile_EnterScope(compiler *c, identifier name, int scope_type,
}
}
if (u->u_ste->ste_has_conditional_annotations) {
/* Cook up an implicit __conditional__annotations__ cell */
/* Cook up an implicit __conditional_annotations__ cell */
Py_ssize_t res;
assert(u->u_scope_type == COMPILE_SCOPE_CLASS || u->u_scope_type == COMPILE_SCOPE_MODULE);
res = _PyCompile_DictAddObj(u->u_metadata.u_cellvars, &_Py_ID(__conditional_annotations__));