summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-03-22 11:21:59 -0700
committerGitHub <noreply@github.com>2023-03-22 11:21:59 -0700
commitf1b96737a4e42c96141927b2ea3976eb84557ed6 (patch)
tree68b6a726e2a6f7f5020a9f86828222284eba5de5
parentgh-95913: Consolidate build requirements changes in 3.11 WhatsNew (GH-98781) (diff)
downloadcpython-f1b96737a4e42c96141927b2ea3976eb84557ed6.tar.gz
cpython-f1b96737a4e42c96141927b2ea3976eb84557ed6.tar.bz2
cpython-f1b96737a4e42c96141927b2ea3976eb84557ed6.zip
gh-102921: [doc] Clarify `exc` argument name in `BaseExceptionGroup` is plural (GH-102922)
(cherry picked from commit 9b19d3936d7cabef67698636d2faf6fa23a95059) Co-authored-by: Kevin Kirsche <Kev.Kirsche+GitHub@gmail.com>
-rw-r--r--Doc/library/exceptions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
index 4a57e9c8799..18c3f47dddc 100644
--- a/Doc/library/exceptions.rst
+++ b/Doc/library/exceptions.rst
@@ -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")