Skip to content

Commit 180b3eb

Browse files
authored
fix traceback.FrameSummary docstring by adding end_lineno, colno, and end_colno (#136716)
1 parent b7d7225 commit 180b3eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/traceback.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,12 @@ class FrameSummary:
287287
of code that was running when the frame was captured.
288288
- :attr:`locals` Either None if locals were not supplied, or a dict
289289
mapping the name to the repr() of the variable.
290+
- :attr:`end_lineno` The last line number of the source code for this frame.
291+
By default, it is set to lineno and indexation starts from 1.
292+
- :attr:`colno` The column number of the source code for this frame.
293+
By default, it is None and indexation starts from 0.
294+
- :attr:`end_colno` The last column number of the source code for this frame.
295+
By default, it is None and indexation starts from 0.
290296
"""
291297

292298
__slots__ = ('filename', 'lineno', 'end_lineno', 'colno', 'end_colno',

0 commit comments

Comments
 (0)