We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
exc
BaseExceptionGroup
1 parent 3468c76 commit 9b19d39Copy full SHA for 9b19d39
Doc/library/exceptions.rst
@@ -948,8 +948,8 @@ their subgroups based on the types of the contained exceptions.
948
these fields do not need to be updated by :meth:`derive`. ::
949
950
>>> class MyGroup(ExceptionGroup):
951
- ... def derive(self, exc):
952
- ... return MyGroup(self.message, exc)
+ ... def derive(self, excs):
+ ... return MyGroup(self.message, excs)
953
...
954
>>> e = MyGroup("eg", [ValueError(1), TypeError(2)])
955
>>> e.add_note("a note")
0 commit comments