mirror of
https://github.com/python/cpython.git
synced 2026-01-27 05:05:50 +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 6d05e55de0f9c0b07fb14b4d2b9cf9c8eee2042c) Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
This commit is contained in:
parent
ebe5e216c8
commit
fca010da50
@ -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…
x
Reference in New Issue
Block a user