mirror of
https://github.com/python/cpython.git
synced 2026-01-13 19:00:20 +00: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:
parent
ebe5e216c8
commit
fca010da50
1 changed files with 1 additions and 1 deletions
|
|
@ -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__));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue