summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorzikcheng <surfingbyte@gmail.com>2022-10-07 17:53:07 (GMT)
committerGitHub <noreply@github.com>2022-10-07 17:53:07 (GMT)
commit24a4b341586be12569e3804b5f1356e745d1f55f (patch)
tree2d55890a268defd75784f01469fd24640ef1f252 /Include
parent7f685683f8e23084aa8b05f0c186f5c962f1db29 (diff)
downloadcpython-24a4b341586be12569e3804b5f1356e745d1f55f.zip
cpython-24a4b341586be12569e3804b5f1356e745d1f55f.tar.gz
cpython-24a4b341586be12569e3804b5f1356e745d1f55f.tar.bz2
Make _symtable_entry.ste_type's comment consistent wit _Py_block_ty (#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.
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_symtable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_symtable.h b/Include/internal/pycore_symtable.h
index 2d64aba..8532646 100644
--- a/Include/internal/pycore_symtable.h
+++ b/Include/internal/pycore_symtable.h
@@ -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,