mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
[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:
committed by
GitHub
parent
ebe5e216c8
commit
fca010da50
+1
-1
@@ -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__));
|
||||
|
||||
Reference in New Issue
Block a user