Skip to content

Commit f1b9673

Browse files
gh-102921: [doc] Clarify exc argument name in BaseExceptionGroup is plural (GH-102922)
(cherry picked from commit 9b19d39) Co-authored-by: Kevin Kirsche <[email protected]>
1 parent 4c1b4ec commit f1b9673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/exceptions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,8 +948,8 @@ their subgroups based on the types of the contained exceptions.
948948
these fields do not need to be updated by :meth:`derive`. ::
949949

950950
>>> class MyGroup(ExceptionGroup):
951-
... def derive(self, exc):
952-
... return MyGroup(self.message, exc)
951+
... def derive(self, excs):
952+
... return MyGroup(self.message, excs)
953953
...
954954
>>> e = MyGroup("eg", [ValueError(1), TypeError(2)])
955955
>>> e.add_note("a note")

0 commit comments

Comments
 (0)