Skip to content

Commit

Permalink
Modify as reviewer suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien-Chen committed Jan 12, 2025
1 parent 01a1727 commit b545299
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Doc/library/traceback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,9 @@ the module-level functions described above.
A :class:`!FrameSummary` object represents a single :ref:`frame <frame-objects>`
in a :ref:`traceback <traceback-objects>`.

.. class:: FrameSummary(filename, lineno, name, lookup_line=True, locals=None, line=None, end_lineno=None, colno=None, end_colno=None)
.. class:: FrameSummary(filename, lineno, name, *,\
lookup_line=True, locals=None, \
line=None, end_lineno=None, colno=None, end_colno=None)

Represents a single :ref:`frame <frame-objects>` in the
:ref:`traceback <traceback-objects>` or stack that is being formatted
Expand Down Expand Up @@ -542,14 +544,17 @@ in a :ref:`traceback <traceback-objects>`.
.. attribute:: FrameSummary.end_lineno

The last line number of the source code for this frame.
By default, it is ``None`` and is 1-index base.

.. attribute:: FrameSummary.colno

The column number of the source code for this frame.
By default, it is ``None`` and is 1-index base.

.. attribute:: FrameSummary.end_colno

The last column number of the source code for this frame.
By default, it is ``None`` and is 1-index base.

.. _traceback-example:

Expand Down

0 comments on commit b545299

Please sign in to comment.