builtins: add BaseExceptionGroup.__class_getitem__ (#7648)

This commit is contained in:
Shantanu
2022-04-16 16:48:46 -07:00
committed by GitHub
parent bedf520d76
commit c93f92d92e

View File

@@ -1783,6 +1783,7 @@ if sys.version_info >= (3, 11):
@overload
def split(self: Self, __condition: Callable[[_BaseExceptionT_co], bool]) -> tuple[Self | None, Self | None]: ...
def derive(self: Self, __excs: Sequence[_BaseExceptionT_co]) -> Self: ...
def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
class ExceptionGroup(BaseExceptionGroup[_ExceptionT_co], Exception):
def __new__(cls: type[Self], __message: str, __exceptions: Sequence[_ExceptionT_co]) -> Self: ...