File tree 3 files changed +18
-2
lines changed
Misc/NEWS.d/next/Documentation
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.
280
280
281
281
For syntax errors - the line number where the error occurred.
282
282
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
+
283
290 .. attribute :: text
284
291
285
292
For syntax errors - the text where the error occurred.
@@ -288,6 +295,13 @@ capture data for later printing in a lightweight fashion.
288
295
289
296
For syntax errors - the offset into the text where the error occurred.
290
297
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
+
291
305
.. attribute :: msg
292
306
293
307
For syntax errors - the compiler error message.
Original file line number Diff line number Diff line change @@ -669,8 +669,8 @@ class TracebackException:
669
669
occurred.
670
670
- :attr:`offset` For syntax errors - the offset into the text where the
671
671
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.
674
674
- :attr:`msg` For syntax errors - the compiler error message.
675
675
"""
676
676
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