Skip to content

Commit 3f887d5

Browse files
authored
Bump mypy to 1.7.0 (#11010)
1 parent 0c7bdff commit 3f887d5

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

requirements-tests.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ flake8==6.1.0 # must match .pre-commit-config.yaml
66
flake8-bugbear==23.9.16 # must match .pre-commit-config.yaml
77
flake8-noqa==1.3.2 # must match .pre-commit-config.yaml
88
flake8-pyi==23.11.0 # must match .pre-commit-config.yaml
9-
mypy==1.6.1
9+
mypy==1.7.0
1010
pre-commit-hooks==4.5.0 # must match .pre-commit-config.yaml
1111
pytype==2023.10.17; platform_system != "Windows" and python_version < "3.12"
1212
ruff==0.1.4 # must match .pre-commit-config.yaml and tests.yml

test_cases/stdlib/check_dataclasses.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,4 @@ def check_other_isdataclass_overloads(x: type, y: object) -> None:
8787
assert_type(dc.fields(y), Tuple[dc.Field[Any], ...])
8888
assert_type(dc.asdict(y), Dict[str, Any])
8989
assert_type(dc.astuple(y), Tuple[Any, ...])
90-
91-
# No longer passes with mypy 1.5.0
92-
# now that mypy gives a tailored signature for dataclasses.replace()
93-
# (https://github.com/python/mypy/issues/15843):
94-
#
95-
# dc.replace(y)
90+
dc.replace(y)

0 commit comments

Comments
 (0)