mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
gh-130881: Handle conditionally defined annotations (#130935)
This commit is contained in:
parent
7bb41aef4b
commit
898e6b395e
11 changed files with 506 additions and 74 deletions
|
|
@ -124,6 +124,8 @@ typedef struct _symtable_entry {
|
|||
enclosing class scope */
|
||||
unsigned ste_has_docstring : 1; /* true if docstring present */
|
||||
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 */
|
||||
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