]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-102921: [doc] Clarify `exc` argument name in `BaseExceptionGroup` is plural (...
authorKevin Kirsche <Kev.Kirsche+GitHub@gmail.com>
Wed, 22 Mar 2023 18:14:05 +0000 (14:14 -0400)
committerGitHub <noreply@github.com>
Wed, 22 Mar 2023 18:14:05 +0000 (18:14 +0000)
Doc/library/exceptions.rst

index 4a57e9c8799336c1d22d9a6db9df2f4138c5faa4..18c3f47dddc0799cf1aee4c18ab19ec4b7ae6985 100644 (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")