Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:
hooks:
- id: flake8
additional_dependencies:
- "flake8-bugbear==23.1.14" # must match requirements-tests.txt
- "flake8-bugbear==23.1.20" # must match requirements-tests.txt
- "flake8-noqa==1.3.0" # must match requirements-tests.txt
- "flake8-pyi==23.1.2" # must match requirements-tests.txt
- repo: https://github.com/pre-commit/mirrors-prettier
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ all = true
disable_all_dunder_policy = true

[tool.typeshed]
pyright_version = "1.1.285"
pyright_version = "1.1.292"
4 changes: 2 additions & 2 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
aiohttp==3.8.3
black==22.12.0 # must match .pre-commit-config.yaml
flake8==6.0.0; python_version >= "3.8" # must match .pre-commit-config.yaml
flake8-bugbear==23.1.14; python_version >= "3.8" # must match .pre-commit-config.yaml
flake8-bugbear==23.1.20; python_version >= "3.8" # must match .pre-commit-config.yaml
flake8-noqa==1.3.0; python_version >= "3.8" # must match .pre-commit-config.yaml
flake8-pyi==23.1.2; python_version >= "3.8" # must match .pre-commit-config.yaml
isort==5.12.0; python_version >= "3.8" # must match .pre-commit-config.yaml
Expand All @@ -10,7 +10,7 @@ packaging==23.0
pathspec>=0.10.3
pre-commit-hooks==4.4.0 # must match .pre-commit-config.yaml
pycln==2.1.3 # must match .pre-commit-config.yaml
pytype==2023.1.17; platform_system != "Windows" and python_version < "3.11"
pytype==2023.1.31; platform_system != "Windows" and python_version < "3.11"
pyyaml==6.0
termcolor>=2
tomli==2.0.1
Expand Down
3 changes: 3 additions & 0 deletions stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,7 @@ class BaseException:
__context__: BaseException | None
__suppress_context__: bool
__traceback__: TracebackType | None
def __new__(cls: type[Self], *args: object) -> Self: ...
Comment thread
AlexWaygood marked this conversation as resolved.
Outdated
def __init__(self, *args: object) -> None: ...
def __setstate__(self, __state: dict[str, Any] | None) -> None: ...
def with_traceback(self: Self, __tb: TracebackType | None) -> Self: ...
Expand Down Expand Up @@ -2008,6 +2009,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
Expand Down Expand Up @@ -2045,6 +2047,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.
Expand Down