]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Fix dunder name typo in compiler code comment (GH-143374) (#143386)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 10 Jan 2026 06:51:09 +0000 (07:51 +0100)
committerGitHub <noreply@github.com>
Sat, 10 Jan 2026 06:51:09 +0000 (12:21 +0530)
Fix dunder name typo in compiler code comment (GH-143374)
(cherry picked from commit 6d05e55de0f9c0b07fb14b4d2b9cf9c8eee2042c)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Python/compile.c

index e2f1c7e8eb5bce14d8c0dec9f175c773bcd0623b..a0430b07d476d39be8a6b7e285801519cf55bfce 100644 (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__));