Skip to content

Commit 4f8880f

Browse files
committed
Clean up broken rebase
1 parent fbf344b commit 4f8880f

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

mypy/test/testconstraints.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def test_unpack_homogenous_tuple(self) -> None:
5858
SUPERTYPE_OF,
5959
)
6060
) == {
61-
Constraint(type_var=fx.t.id, op=SUPERTYPE_OF, target=fx.a),
62-
Constraint(type_var=fx.t.id, op=SUPERTYPE_OF, target=fx.b),
61+
Constraint(type_var=fx.t, op=SUPERTYPE_OF, target=fx.a),
62+
Constraint(type_var=fx.t, op=SUPERTYPE_OF, target=fx.b),
6363
}
6464

6565
def test_unpack_homogenous_tuple_with_prefix_and_suffix(self) -> None:
@@ -71,10 +71,10 @@ def test_unpack_homogenous_tuple_with_prefix_and_suffix(self) -> None:
7171
SUPERTYPE_OF,
7272
)
7373
) == {
74-
Constraint(type_var=fx.t.id, op=SUPERTYPE_OF, target=fx.a),
75-
Constraint(type_var=fx.s.id, op=SUPERTYPE_OF, target=fx.b),
76-
Constraint(type_var=fx.s.id, op=SUPERTYPE_OF, target=fx.c),
77-
Constraint(type_var=fx.u.id, op=SUPERTYPE_OF, target=fx.d),
74+
Constraint(type_var=fx.t, op=SUPERTYPE_OF, target=fx.a),
75+
Constraint(type_var=fx.s, op=SUPERTYPE_OF, target=fx.b),
76+
Constraint(type_var=fx.s, op=SUPERTYPE_OF, target=fx.c),
77+
Constraint(type_var=fx.u, op=SUPERTYPE_OF, target=fx.d),
7878
}
7979

8080
def test_unpack_tuple(self) -> None:
@@ -93,8 +93,8 @@ def test_unpack_tuple(self) -> None:
9393
SUPERTYPE_OF,
9494
)
9595
) == {
96-
Constraint(type_var=fx.t.id, op=SUPERTYPE_OF, target=fx.a),
97-
Constraint(type_var=fx.s.id, op=SUPERTYPE_OF, target=fx.b),
96+
Constraint(type_var=fx.t, op=SUPERTYPE_OF, target=fx.a),
97+
Constraint(type_var=fx.s, op=SUPERTYPE_OF, target=fx.b),
9898
}
9999

100100
def test_unpack_with_prefix_and_suffix(self) -> None:
@@ -115,10 +115,10 @@ def test_unpack_with_prefix_and_suffix(self) -> None:
115115
SUPERTYPE_OF,
116116
)
117117
) == {
118-
Constraint(type_var=fx.u.id, op=SUPERTYPE_OF, target=fx.a),
119-
Constraint(type_var=fx.t.id, op=SUPERTYPE_OF, target=fx.b),
120-
Constraint(type_var=fx.s.id, op=SUPERTYPE_OF, target=fx.c),
121-
Constraint(type_var=fx.u.id, op=SUPERTYPE_OF, target=fx.d),
118+
Constraint(type_var=fx.u, op=SUPERTYPE_OF, target=fx.a),
119+
Constraint(type_var=fx.t, op=SUPERTYPE_OF, target=fx.b),
120+
Constraint(type_var=fx.s, op=SUPERTYPE_OF, target=fx.c),
121+
Constraint(type_var=fx.u, op=SUPERTYPE_OF, target=fx.d),
122122
}
123123

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

0 commit comments

Comments
 (0)