Skip to content

Commit 1b2e409

Browse files
authored
Bump mypy to 1.4.1 (#10351)
1 parent d492efe commit 1b2e409

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ flake8-bugbear==23.5.9; python_version >= "3.8" # must match .pre-commit-confi
77
flake8-noqa==1.3.1; python_version >= "3.8" # must match .pre-commit-config.yaml
88
flake8-pyi==23.5.0; python_version >= "3.8" # must match .pre-commit-config.yaml
99
isort==5.12.0; python_version >= "3.8" # must match .pre-commit-config.yaml
10-
mypy==1.3.0
10+
mypy==1.4.1
1111
pre-commit-hooks==4.4.0 # must match .pre-commit-config.yaml
1212
pycln==2.1.5 # must match .pre-commit-config.yaml
1313
pytype==2023.6.2; platform_system != "Windows" and python_version < "3.11"

stdlib/builtins.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ from typing import ( # noqa: Y022
5353
overload,
5454
type_check_only,
5555
)
56-
from typing_extensions import ( # type: ignore
56+
from typing_extensions import (
5757
Concatenate,
5858
Literal,
5959
LiteralString,
@@ -465,7 +465,7 @@ class str(Sequence[str]):
465465
@overload
466466
def format(self: LiteralString, *args: LiteralString, **kwargs: LiteralString) -> LiteralString: ...
467467
@overload
468-
def format(self, *args: object, **kwargs: object) -> str: ... # type: ignore
468+
def format(self, *args: object, **kwargs: object) -> str: ...
469469
def format_map(self, map: _FormatMapMapping) -> str: ...
470470
def index(self, __sub: str, __start: SupportsIndex | None = ..., __end: SupportsIndex | None = ...) -> int: ...
471471
def isalnum(self) -> bool: ...
@@ -595,7 +595,7 @@ class str(Sequence[str]):
595595
@overload
596596
def __mod__(self: LiteralString, __value: LiteralString | tuple[LiteralString, ...]) -> LiteralString: ...
597597
@overload
598-
def __mod__(self, __value: Any) -> str: ... # type: ignore
598+
def __mod__(self, __value: Any) -> str: ...
599599
@overload
600600
def __mul__(self: LiteralString, __value: SupportsIndex) -> LiteralString: ...
601601
@overload

tests/stubtest_allowlists/py3_common.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,6 @@ typing\.AsyncIterable
423423
typing\.AsyncGenerator
424424
typing\.AbstractSet
425425

426-
# Internal attributes
427-
.*\.__protocol_attrs__
428-
.*\.__callable_proto_members_only__
429-
430426
typing_extensions.NewType.__mro_entries__ # just exists for an error message
431427

432428
# https://github.com/python/mypy/issues/15302

0 commit comments

Comments
 (0)