Skip to content

Commit

Permalink
Make _symtable_entry.ste_type's comment consistent wit _Py_block_ty (p…
Browse files Browse the repository at this point in the history
…ython#92414)

_Py_block_ty defines four types of block, FunctionBlock, ClassBlock, ModuleBlock and AnnotationBlock.
But _symtable_entry.ste_type only comments three of them, I think it's better both sides are consistent.
  • Loading branch information
zikcheng authored and mpage committed Oct 11, 2022
1 parent ca73c85 commit 4ca8bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Include/internal/pycore_symtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ typedef struct _symtable_entry {
PyObject *ste_varnames; /* list of function parameters */
PyObject *ste_children; /* list of child blocks */
PyObject *ste_directives;/* locations of global and nonlocal statements */
_Py_block_ty ste_type; /* module, class or function */
_Py_block_ty ste_type; /* module, class, function or annotation */
int ste_nested; /* true if block is nested */
unsigned ste_free : 1; /* true if block has free variables */
unsigned ste_child_free : 1; /* true if a child block has free vars,
Expand Down

0 comments on commit 4ca8bb0

Please sign in to comment.