Fix mypy checks
This commit is contained in:
parent
5a78df4bd0
commit
c229d6f46f
|
@ -5,7 +5,7 @@ from dataclasses import field
|
|||
@dataclass
|
||||
class SimpleDataObject:
|
||||
field_a: int = field()
|
||||
field_b: int = field()
|
||||
field_b: str = field()
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
|
@ -888,6 +888,7 @@ class TestAssert_reprcompare_attrsclass:
|
|||
right = SimpleDataObject(OtherDataObject(1, "b"), "b")
|
||||
|
||||
lines = callequal(left, right)
|
||||
assert lines is not None
|
||||
assert "Matching attributes" not in lines
|
||||
for line in lines[1:]:
|
||||
assert "field_b:" not in line
|
||||
|
@ -908,8 +909,8 @@ class TestAssert_reprcompare_attrsclass:
|
|||
right = SimpleDataObject(OtherDataObject(1, "b"), "b")
|
||||
|
||||
lines = callequal(left, right)
|
||||
assert lines is not None
|
||||
assert "field_d: 'a' != 'b'" in lines
|
||||
print("\n".join(lines))
|
||||
|
||||
def test_attrs_verbose(self) -> None:
|
||||
@attr.s
|
||||
|
|
Loading…
Reference in New Issue