Skip to content

Commit c93f92d

Browse files
authored
builtins: add BaseExceptionGroup.__class_getitem__ (#7648)
1 parent bedf520 commit c93f92d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/builtins.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,6 +1783,7 @@ if sys.version_info >= (3, 11):
17831783
@overload
17841784
def split(self: Self, __condition: Callable[[_BaseExceptionT_co], bool]) -> tuple[Self | None, Self | None]: ...
17851785
def derive(self: Self, __excs: Sequence[_BaseExceptionT_co]) -> Self: ...
1786+
def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
17861787

17871788
class ExceptionGroup(BaseExceptionGroup[_ExceptionT_co], Exception):
17881789
def __new__(cls: type[Self], __message: str, __exceptions: Sequence[_ExceptionT_co]) -> Self: ...

0 commit comments

Comments
 (0)