Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf1b9673

Browse files
gh-102921: [doc] Clarifyexc argument name inBaseExceptionGroup is plural (GH-102922)
(cherry picked from commit9b19d39)Co-authored-by: Kevin Kirsche <Kev.Kirsche+GitHub@gmail.com>
1 parent4c1b4ec commitf1b9673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Doc/library/exceptions.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,8 +948,8 @@ their subgroups based on the types of the contained exceptions.
948948
these fields do not need to be updated by:meth:`derive`. ::
949949

950950
>>> class MyGroup(ExceptionGroup):
951-
... def derive(self,exc):
952-
... return MyGroup(self.message,exc)
951+
... def derive(self,excs):
952+
... return MyGroup(self.message,excs)
953953
...
954954
>>> e = MyGroup("eg", [ValueError(1), TypeError(2)])
955955
>>> e.add_note("a note")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp