mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-28 15:23:17 +08:00
Bump mypy to 1.5.1 (#10559)
This commit is contained in:
1 parent
695d41f487
commit
ef758b66c0
12 files changed
+18
-272
No files matched your search
@@ -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