mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Bump mypy to 1.5.1 (#10559)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user