Bump various test dependencies (#9646)

This commit is contained in:
Alex Waygood
2023-02-01 14:23:40 +00:00
committed by GitHub
parent 23e3dc9bd8
commit 8000fbd386
4 changed files with 6 additions and 4 deletions

View File

@@ -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.