From 4bb966a06fe833e66320d557044a7c0a78f2adc7 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Fri, 23 Jun 2023 08:11:01 +0100 Subject: [PATCH 1/4] Bump mypy to 1.4.0 --- requirements-tests.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-tests.txt b/requirements-tests.txt index 8f9b673d725b..fa3946fd01e9 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -7,7 +7,7 @@ flake8-bugbear==23.5.9; python_version >= "3.8" # must match .pre-commit-confi 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 isort==5.12.0; python_version >= "3.8" # must match .pre-commit-config.yaml -mypy==1.3.0 +mypy==1.4.0 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" From 546f5db62c26ca4b63f16891c4d518095021dfce Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Fri, 23 Jun 2023 08:14:31 +0100 Subject: [PATCH 2/4] Remove unused allowlist entries --- tests/stubtest_allowlists/py3_common.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/stubtest_allowlists/py3_common.txt b/tests/stubtest_allowlists/py3_common.txt index d8d282839417..1956427a5a30 100644 --- a/tests/stubtest_allowlists/py3_common.txt +++ b/tests/stubtest_allowlists/py3_common.txt @@ -423,10 +423,6 @@ typing\.AsyncIterable typing\.AsyncGenerator typing\.AbstractSet -# Internal attributes -.*\.__protocol_attrs__ -.*\.__callable_proto_members_only__ - typing_extensions.NewType.__mro_entries__ # just exists for an error message # https://github.com/python/mypy/issues/15302 From e8b3ab1e7f574cfa56ea2019c5db61924a47e1d0 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Mon, 26 Jun 2023 00:29:43 +0100 Subject: [PATCH 3/4] one dot four dot one --- requirements-tests.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-tests.txt b/requirements-tests.txt index fa3946fd01e9..54411e492ece 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -7,7 +7,7 @@ flake8-bugbear==23.5.9; python_version >= "3.8" # must match .pre-commit-confi 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 isort==5.12.0; python_version >= "3.8" # must match .pre-commit-config.yaml -mypy==1.4.0 +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" From 2d060f415389b5295d9bbaadbf06ffab45932d85 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Mon, 26 Jun 2023 00:31:18 +0100 Subject: [PATCH 4/4] Remove unused ignores --- stdlib/builtins.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index b3871776128a..45a17b33d979 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -53,7 +53,7 @@ from typing import ( # noqa: Y022 overload, type_check_only, ) -from typing_extensions import ( # type: ignore +from typing_extensions import ( Concatenate, Literal, LiteralString, @@ -465,7 +465,7 @@ class str(Sequence[str]): @overload def format(self: LiteralString, *args: LiteralString, **kwargs: LiteralString) -> LiteralString: ... @overload - def format(self, *args: object, **kwargs: object) -> str: ... # type: ignore + def format(self, *args: object, **kwargs: object) -> str: ... def format_map(self, map: _FormatMapMapping) -> str: ... def index(self, __sub: str, __start: SupportsIndex | None = ..., __end: SupportsIndex | None = ...) -> int: ... def isalnum(self) -> bool: ... @@ -595,7 +595,7 @@ class str(Sequence[str]): @overload def __mod__(self: LiteralString, __value: LiteralString | tuple[LiteralString, ...]) -> LiteralString: ... @overload - def __mod__(self, __value: Any) -> str: ... # type: ignore + def __mod__(self, __value: Any) -> str: ... @overload def __mul__(self: LiteralString, __value: SupportsIndex) -> LiteralString: ... @overload