File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
Misc/NEWS.d/next/Documentation Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,13 @@ capture data for later printing in a lightweight fashion.
280280
281281 For syntax errors - the line number where the error occurred.
282282
283+ .. attribute :: end_lineno
284+
285+ For syntax errors - the end line number where the error occurred.
286+ Can be ``None `` if not present.
287+
288+ .. versionadded :: 3.10
289+
283290 .. attribute :: text
284291
285292 For syntax errors - the text where the error occurred.
@@ -288,6 +295,13 @@ capture data for later printing in a lightweight fashion.
288295
289296 For syntax errors - the offset into the text where the error occurred.
290297
298+ .. attribute :: end_offset
299+
300+ For syntax errors - the end offset into the text where the error occurred.
301+ Can be ``None `` if not present.
302+
303+ .. versionadded :: 3.10
304+
291305 .. attribute :: msg
292306
293307 For syntax errors - the compiler error message.
Original file line number Diff line number Diff line change @@ -669,8 +669,8 @@ class TracebackException:
669669 occurred.
670670 - :attr:`offset` For syntax errors - the offset into the text where the
671671 error occurred.
672- - :attr:`end_offset` For syntax errors - the offset into the text where the
673- error occurred. Can be `None` if not present.
672+ - :attr:`end_offset` For syntax errors - the end offset into the text where
673+ the error occurred. Can be `None` if not present.
674674 - :attr:`msg` For syntax errors - the compiler error message.
675675 """
676676
Original file line number Diff line number Diff line change 1+ Add missing documentation for the ``end_lineno `` and ``end_offset `` attributes
2+ of the :class: `traceback.TracebackException ` class.
You can’t perform that action at this time.
0 commit comments