From 3f887d5852a6cafb94e4d7e2299ef0433236d143 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 10 Nov 2023 15:13:42 +0000 Subject: [PATCH] Bump mypy to 1.7.0 (#11010) --- requirements-tests.txt | 2 +- test_cases/stdlib/check_dataclasses.py | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/requirements-tests.txt b/requirements-tests.txt index d6e150d08..a0f3e7bd0 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -6,7 +6,7 @@ flake8==6.1.0 # must match .pre-commit-config.yaml flake8-bugbear==23.9.16 # must match .pre-commit-config.yaml flake8-noqa==1.3.2 # must match .pre-commit-config.yaml flake8-pyi==23.11.0 # must match .pre-commit-config.yaml -mypy==1.6.1 +mypy==1.7.0 pre-commit-hooks==4.5.0 # must match .pre-commit-config.yaml pytype==2023.10.17; platform_system != "Windows" and python_version < "3.12" ruff==0.1.4 # must match .pre-commit-config.yaml and tests.yml diff --git a/test_cases/stdlib/check_dataclasses.py b/test_cases/stdlib/check_dataclasses.py index 2dabee6fd..b06c4a9ff 100644 --- a/test_cases/stdlib/check_dataclasses.py +++ b/test_cases/stdlib/check_dataclasses.py @@ -87,9 +87,4 @@ def check_other_isdataclass_overloads(x: type, y: object) -> None: assert_type(dc.fields(y), Tuple[dc.Field[Any], ...]) assert_type(dc.asdict(y), Dict[str, Any]) assert_type(dc.astuple(y), Tuple[Any, ...]) - - # No longer passes with mypy 1.5.0 - # now that mypy gives a tailored signature for dataclasses.replace() - # (https://github.com/python/mypy/issues/15843): - # - # dc.replace(y) + dc.replace(y)