From: Kevin Kirsche Date: Wed, 22 Mar 2023 18:14:05 +0000 (-0400) Subject: gh-102921: [doc] Clarify `exc` argument name in `BaseExceptionGroup` is plural (... X-Git-Tag: v3.12.0a7~88 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b19d3936d7cabef67698636d2faf6fa23a95059;p=thirdparty%2FPython%2Fcpython.git gh-102921: [doc] Clarify `exc` argument name in `BaseExceptionGroup` is plural (#102922) --- diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index 4a57e9c87993..18c3f47dddc0 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")