Skip to content

Commit

Permalink
gh-102921: [doc] Clarify exc argument name in BaseExceptionGroup
Browse files Browse the repository at this point in the history
…is plural (GH-102922)

(cherry picked from commit 9b19d39)

Co-authored-by: Kevin Kirsche <Kev.Kirsche+GitHub@gmail.com>
  • Loading branch information
miss-islington and kkirsche authored Mar 22, 2023
1 parent 4c1b4ec commit f1b9673
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -948,8 +948,8 @@ their subgroups based on the types of the contained exceptions.
these fields do not need to be updated by :meth:`derive`. ::

>>> class MyGroup(ExceptionGroup):
... def derive(self, exc):
... return MyGroup(self.message, exc)
... def derive(self, excs):
... return MyGroup(self.message, excs)
...
>>> e = MyGroup("eg", [ValueError(1), TypeError(2)])
>>> e.add_note("a note")
Expand Down

0 comments on commit f1b9673

Please sign in to comment.