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 4c1b4ec commit f1b9673Copy full SHA for f1b9673
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