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 @@ -279,6 +279,13 @@ capture data for later printing in a lightweight fashion.
279
279
280
280
For syntax errors - the line number where the error occurred.
281
281
282
+ .. attribute :: end_lineno
283
+
284
+ For syntax errors - the end line number where the error occurred.
285
+ Can be ``None `` if not present.
286
+
287
+ .. versionadded :: 3.10
288
+
282
289
.. attribute :: text
283
290
284
291
For syntax errors - the text where the error occurred.
@@ -287,6 +294,13 @@ capture data for later printing in a lightweight fashion.
287
294
288
295
For syntax errors - the offset into the text where the error occurred.
289
296
297
+ .. attribute :: end_offset
298
+
299
+ For syntax errors - the end offset into the text where the error occurred.
300
+ Can be ``None `` if not present.
301
+
302
+ .. versionadded :: 3.10
303
+
290
304
.. attribute :: msg
291
305
292
306
For syntax errors - the compiler error message.
Original file line number Diff line number Diff line change @@ -674,8 +674,8 @@ class TracebackException:
674
674
occurred.
675
675
- :attr:`offset` For syntax errors - the offset into the text where the
676
676
error occurred.
677
- - :attr:`end_offset` For syntax errors - the offset into the text where the
678
- error occurred. Can be `None` if not present.
677
+ - :attr:`end_offset` For syntax errors - the end offset into the text where
678
+ the error occurred. Can be `None` if not present.
679
679
- :attr:`msg` For syntax errors - the compiler error message.
680
680
"""
681
681
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