Bump mypy to 1.5.1 (#10559)

This commit is contained in:
Alex Waygood
2023-08-16 20:18:31 +01:00
committed by GitHub
parent 695d41f487
commit ef758b66c0
12 changed files with 18 additions and 272 deletions

View File

@@ -87,4 +87,9 @@ 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, ...])
dc.replace(y)
# 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)