mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
gh-130924: Do not create cells for usages of names in local annotations (#131843)
This commit is contained in:
parent
c6b1a07343
commit
425f60b9eb
4 changed files with 40 additions and 13 deletions
|
@ -126,6 +126,7 @@ typedef struct _symtable_entry {
|
|||
unsigned ste_method : 1; /* true if block is a function block defined in class scope */
|
||||
unsigned ste_has_conditional_annotations : 1; /* true if block has conditionally executed annotations */
|
||||
unsigned ste_in_conditional_block : 1; /* set while we are inside a conditionally executed block */
|
||||
unsigned ste_in_unevaluated_annotation : 1; /* set while we are processing an annotation that will not be evaluated */
|
||||
int ste_comp_iter_expr; /* non-zero if visiting a comprehension range expression */
|
||||
_Py_SourceLocation ste_loc; /* source location of block */
|
||||
struct _symtable_entry *ste_annotation_block; /* symbol table entry for this entry's annotations */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue