diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a10cbcab0..c03eec00f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,9 +31,9 @@ repos: hooks: - id: flake8 additional_dependencies: - - "flake8-bugbear==23.5.9" # must match requirements-tests.txt - - "flake8-noqa==1.3.1" # must match requirements-tests.txt - - "flake8-pyi==23.5.0" # must match requirements-tests.txt + - "flake8-bugbear==23.6.5" # must match requirements-tests.txt + - "flake8-noqa==1.3.2" # must match requirements-tests.txt + - "flake8-pyi==23.6.0" # must match requirements-tests.txt types: [file] types_or: [python, pyi] diff --git a/pyproject.toml b/pyproject.toml index 82fce1b83..a0888b2d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,4 +62,4 @@ all = true disable_all_dunder_policy = true [tool.typeshed] -pyright_version = "1.1.315" +pyright_version = "1.1.316" diff --git a/requirements-tests.txt b/requirements-tests.txt index 54411e492..bf4896d43 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -3,14 +3,14 @@ # "tool.typeshed" section in pyproject.toml for additional type checkers. black==23.3.0 # must match .pre-commit-config.yaml flake8==6.0.0; python_version >= "3.8" # must match .pre-commit-config.yaml -flake8-bugbear==23.5.9; python_version >= "3.8" # must match .pre-commit-config.yaml -flake8-noqa==1.3.1; python_version >= "3.8" # must match .pre-commit-config.yaml -flake8-pyi==23.5.0; python_version >= "3.8" # must match .pre-commit-config.yaml +flake8-bugbear==23.6.5; python_version >= "3.8" # must match .pre-commit-config.yaml +flake8-noqa==1.3.2; python_version >= "3.8" # must match .pre-commit-config.yaml +flake8-pyi==23.6.0; python_version >= "3.8" # must match .pre-commit-config.yaml isort==5.12.0; python_version >= "3.8" # must match .pre-commit-config.yaml mypy==1.4.1 pre-commit-hooks==4.4.0 # must match .pre-commit-config.yaml pycln==2.1.5 # must match .pre-commit-config.yaml -pytype==2023.6.2; platform_system != "Windows" and python_version < "3.11" +pytype==2023.6.16; platform_system != "Windows" and python_version < "3.11" # Libraries used by our various scripts. aiohttp==3.8.4; python_version < "3.12" # aiohttp can't be installed on 3.12 yet diff --git a/stdlib/_collections_abc.pyi b/stdlib/_collections_abc.pyi index 05b5421c2..ba2f638d8 100644 --- a/stdlib/_collections_abc.pyi +++ b/stdlib/_collections_abc.pyi @@ -1,7 +1,7 @@ import sys from abc import abstractmethod from types import MappingProxyType -from typing import ( # noqa: Y022,Y038 +from typing import ( # noqa: Y022,Y038,Y057 AbstractSet as Set, AsyncGenerator as AsyncGenerator, AsyncIterable as AsyncIterable, diff --git a/stdlib/asyncio/__init__.pyi b/stdlib/asyncio/__init__.pyi index 2ce066cac..c11465184 100644 --- a/stdlib/asyncio/__init__.pyi +++ b/stdlib/asyncio/__init__.pyi @@ -36,8 +36,8 @@ _T = TypeVar("_T") # Aliases imported by multiple submodules in typeshed if sys.version_info >= (3, 12): - _AwaitableLike: TypeAlias = Awaitable[_T] - _CoroutineLike: TypeAlias = Coroutine[Any, Any, _T] + _AwaitableLike: TypeAlias = Awaitable[_T] # noqa: Y047 + _CoroutineLike: TypeAlias = Coroutine[Any, Any, _T] # noqa: Y047 else: _AwaitableLike: TypeAlias = Generator[Any, None, _T] | Awaitable[_T] _CoroutineLike: TypeAlias = Generator[Any, None, _T] | Coroutine[Any, Any, _T]