Skip to content

Commit

Permalink
Clean up broken rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jhance committed Sep 8, 2022
1 parent fbf344b commit 4f8880f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions mypy/test/testconstraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def test_unpack_homogenous_tuple(self) -> None:
SUPERTYPE_OF,
)
) == {
Constraint(type_var=fx.t.id, op=SUPERTYPE_OF, target=fx.a),
Constraint(type_var=fx.t.id, op=SUPERTYPE_OF, target=fx.b),
Constraint(type_var=fx.t, op=SUPERTYPE_OF, target=fx.a),
Constraint(type_var=fx.t, op=SUPERTYPE_OF, target=fx.b),
}

def test_unpack_homogenous_tuple_with_prefix_and_suffix(self) -> None:
Expand All @@ -71,10 +71,10 @@ def test_unpack_homogenous_tuple_with_prefix_and_suffix(self) -> None:
SUPERTYPE_OF,
)
) == {
Constraint(type_var=fx.t.id, op=SUPERTYPE_OF, target=fx.a),
Constraint(type_var=fx.s.id, op=SUPERTYPE_OF, target=fx.b),
Constraint(type_var=fx.s.id, op=SUPERTYPE_OF, target=fx.c),
Constraint(type_var=fx.u.id, op=SUPERTYPE_OF, target=fx.d),
Constraint(type_var=fx.t, op=SUPERTYPE_OF, target=fx.a),
Constraint(type_var=fx.s, op=SUPERTYPE_OF, target=fx.b),
Constraint(type_var=fx.s, op=SUPERTYPE_OF, target=fx.c),
Constraint(type_var=fx.u, op=SUPERTYPE_OF, target=fx.d),
}

def test_unpack_tuple(self) -> None:
Expand All @@ -93,8 +93,8 @@ def test_unpack_tuple(self) -> None:
SUPERTYPE_OF,
)
) == {
Constraint(type_var=fx.t.id, op=SUPERTYPE_OF, target=fx.a),
Constraint(type_var=fx.s.id, op=SUPERTYPE_OF, target=fx.b),
Constraint(type_var=fx.t, op=SUPERTYPE_OF, target=fx.a),
Constraint(type_var=fx.s, op=SUPERTYPE_OF, target=fx.b),
}

def test_unpack_with_prefix_and_suffix(self) -> None:
Expand All @@ -115,10 +115,10 @@ def test_unpack_with_prefix_and_suffix(self) -> None:
SUPERTYPE_OF,
)
) == {
Constraint(type_var=fx.u.id, op=SUPERTYPE_OF, target=fx.a),
Constraint(type_var=fx.t.id, op=SUPERTYPE_OF, target=fx.b),
Constraint(type_var=fx.s.id, op=SUPERTYPE_OF, target=fx.c),
Constraint(type_var=fx.u.id, op=SUPERTYPE_OF, target=fx.d),
Constraint(type_var=fx.u, op=SUPERTYPE_OF, target=fx.a),
Constraint(type_var=fx.t, op=SUPERTYPE_OF, target=fx.b),
Constraint(type_var=fx.s, op=SUPERTYPE_OF, target=fx.c),
Constraint(type_var=fx.u, op=SUPERTYPE_OF, target=fx.d),
}

def test_unpack_tuple_length_non_match(self) -> None:
Expand All @@ -140,6 +140,6 @@ def test_unpack_tuple_length_non_match(self) -> None:
)
# We still get constraints on the prefix/suffix in this case.
) == {
Constraint(type_var=fx.u.id, op=SUPERTYPE_OF, target=fx.a),
Constraint(type_var=fx.u.id, op=SUPERTYPE_OF, target=fx.d),
Constraint(type_var=fx.u, op=SUPERTYPE_OF, target=fx.a),
Constraint(type_var=fx.u, op=SUPERTYPE_OF, target=fx.d),
}

0 comments on commit 4f8880f

Please sign in to comment.