Skip to content

Commit 96c9961

Browse files
authored
bpo-43556: Fix the attr names for ast.expr and ast.stmt in the docs (GH-24940)
1 parent e10bd76 commit 96c9961

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Doc/library/ast.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@ Node classes
8080
end_col_offset
8181

8282
Instances of :class:`ast.expr` and :class:`ast.stmt` subclasses have
83-
:attr:`lineno`, :attr:`col_offset`, :attr:`lineno`, and :attr:`col_offset`
84-
attributes. The :attr:`lineno` and :attr:`end_lineno` are the first and
85-
last line numbers of source text span (1-indexed so the first line is line 1)
86-
and the :attr:`col_offset` and :attr:`end_col_offset` are the corresponding
83+
:attr:`lineno`, :attr:`col_offset`, :attr:`end_lineno`, and
84+
:attr:`end_col_offset` attributes. The :attr:`lineno` and
85+
:attr:`end_lineno` are the first and last line numbers of the source
86+
text span (1-indexed so the first line is line 1), and the
87+
:attr:`col_offset` and :attr:`end_col_offset` are the corresponding
8788
UTF-8 byte offsets of the first and last tokens that generated the node.
8889
The UTF-8 offset is recorded because the parser uses UTF-8 internally.
8990

0 commit comments

Comments
 (0)