https://github.com/python/cpython/commit/fca010da5045eeabd52a2197ebe0b23debd12c86
commit: fca010da5045eeabd52a2197ebe0b23debd12c86
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2026-01-10T12:21:09+05:30
summary:

[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 6d05e55de0f9c0b07fb14b4d2b9cf9c8eee2042c)

Co-authored-by: Bartosz SÅ‚awecki <[email protected]>

files:
M Python/compile.c

diff --git a/Python/compile.c b/Python/compile.c
index e2f1c7e8eb5bce..a0430b07d476d3 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -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__));

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to