Bump mypy to 1.7.0 (#11010)

This commit is contained in:
Alex Waygood authored and GitHub committed 2023-11-10 15:13:42 +00:00
1 parent 0c7bdffa90
commit 3f887d5852
2 files changed
+2 -7

No files matched your search

+1 -6
View File
@@ -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)