gh-102921: [doc] Clarify exc argument name in BaseExceptionGroup is plural (GH-102922)

(cherry picked from commit 9b19d3936d)

Co-authored-by: Kevin Kirsche <Kev.Kirsche+GitHub@gmail.com>
This commit is contained in:
Miss Islington (bot) 2023-03-22 11:21:59 -07:00 committed by GitHub
parent 4c1b4eccba
commit f1b96737a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")