mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
builtins: add BaseExceptionGroup.__class_getitem__ (#7648)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user