Skip to content

Bump mypy to 1.4.1 #10351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 25, 2023
Merged
Show file tree
Hide file tree
Changes from all 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 requirements-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.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"
Expand Down
6 changes: 3 additions & 3 deletions stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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: ...
Expand Down Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions tests/stubtest_allowlists/py3_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down