[pre-commit.ci] pre-commit autoupdate (#8201)
* [pre-commit.ci] pre-commit autoupdate * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * manual fixes after configuration update * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Anthony Sottile <asottile@umich.edu>
This commit is contained in:
committed by
GitHub
parent
7751904875
commit
ee03e31831
@@ -29,10 +29,16 @@ class C3:
|
||||
|
||||
def test_recursive_dataclasses():
|
||||
left = C3(
|
||||
S(10, "ten"), C2(C(S(1, "one"), S(2, "two")), S(2, "three")), "equal", "left",
|
||||
S(10, "ten"),
|
||||
C2(C(S(1, "one"), S(2, "two")), S(2, "three")),
|
||||
"equal",
|
||||
"left",
|
||||
)
|
||||
right = C3(
|
||||
S(20, "xxx"), C2(C(S(1, "one"), S(2, "yyy")), S(3, "three")), "equal", "right",
|
||||
S(20, "xxx"),
|
||||
C2(C(S(1, "one"), S(2, "yyy")), S(3, "three")),
|
||||
"equal",
|
||||
"right",
|
||||
)
|
||||
|
||||
assert left == right
|
||||
|
||||
Reference in New Issue
Block a user