mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Bump various test dependencies (#9646)
This commit is contained in:
@@ -2008,6 +2008,7 @@ if sys.version_info >= (3, 11):
|
||||
# See `check_exception_group.py` for use-cases and comments.
|
||||
class BaseExceptionGroup(BaseException, Generic[_BaseExceptionT_co]):
|
||||
def __new__(cls: type[Self], __message: str, __exceptions: Sequence[_BaseExceptionT_co]) -> Self: ...
|
||||
def __init__(self, __message: str, __exceptions: Sequence[_BaseExceptionT_co]) -> None: ...
|
||||
@property
|
||||
def message(self) -> str: ...
|
||||
@property
|
||||
@@ -2045,6 +2046,7 @@ if sys.version_info >= (3, 11):
|
||||
|
||||
class ExceptionGroup(BaseExceptionGroup[_ExceptionT_co], Exception):
|
||||
def __new__(cls: type[Self], __message: str, __exceptions: Sequence[_ExceptionT_co]) -> Self: ...
|
||||
def __init__(self, __message: str, __exceptions: Sequence[_ExceptionT_co]) -> None: ...
|
||||
@property
|
||||
def exceptions(self) -> tuple[_ExceptionT_co | ExceptionGroup[_ExceptionT_co], ...]: ...
|
||||
# We accept a narrower type, but that's OK.
|
||||
|
||||
Reference in New Issue
Block a user