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 @@ -259,6 +259,13 @@ capture data for later printing in a lightweight fashion.
259
259
260
260
For syntax errors - the line number where the error occurred.
261
261
262
+ .. attribute :: end_lineno
263
+
264
+ For syntax errors - the end line number where the error occurred.
265
+ Can be ``None `` if not present.
266
+
267
+ .. versionadded :: 3.10
268
+
262
269
.. attribute :: text
263
270
264
271
For syntax errors - the text where the error occurred.
@@ -267,6 +274,13 @@ capture data for later printing in a lightweight fashion.
267
274
268
275
For syntax errors - the offset into the text where the error occurred.
269
276
277
+ .. attribute :: end_offset
278
+
279
+ For syntax errors - the end offset into the text where the error occurred.
280
+ Can be ``None `` if not present.
281
+
282
+ .. versionadded :: 3.10
283
+
270
284
.. attribute :: msg
271
285
272
286
For syntax errors - the compiler error message.
Original file line number Diff line number Diff line change @@ -481,8 +481,8 @@ class TracebackException:
481
481
occurred.
482
482
- :attr:`offset` For syntax errors - the offset into the text where the
483
483
error occurred.
484
- - :attr:`end_offset` For syntax errors - the offset into the text where the
485
- error occurred. Can be `None` if not present.
484
+ - :attr:`end_offset` For syntax errors - the end offset into the text where
485
+ the error occurred. Can be `None` if not present.
486
486
- :attr:`msg` For syntax errors - the compiler error message.
487
487
"""
488
488
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