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 (python#102922)
  • Loading branch information
kkirsche authored and warsaw committed Apr 11, 2023
1 parent 3b6ada4 commit b6ba386
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 b6ba386

Please sign in to comment.