Skip to content

Commit

Permalink
pythongh-102921: [doc] Clarify exc argument name in `BaseExceptionG…
Browse files Browse the repository at this point in the history
…roup` is plural (pythonGH-102922)

(cherry picked from commit 9b19d39)

Co-authored-by: Kevin Kirsche <Kev.Kirsche+GitHub@gmail.com>
  • Loading branch information
kkirsche authored and miss-islington committed Mar 22, 2023
1 parent 4c1b4ec commit 2165fb2
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 2165fb2

Please sign in to comment.