Skip to content

Commit dd9abdf

Browse files
committed
missed one
1 parent 5d2738e commit dd9abdf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/ty_python_semantic/src/types.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2417,7 +2417,9 @@ impl<'db> Type<'db> {
24172417
(
24182418
Type::NonInferableTypeVar(self_bound_typevar),
24192419
Type::NonInferableTypeVar(other_bound_typevar),
2420-
) if self_bound_typevar == other_bound_typevar => ConstraintSet::from(false),
2420+
) if self_bound_typevar.identity(db) == other_bound_typevar.identity(db) => {
2421+
ConstraintSet::from(false)
2422+
}
24212423

24222424
(tvar @ Type::NonInferableTypeVar(_), Type::Intersection(intersection))
24232425
| (Type::Intersection(intersection), tvar @ Type::NonInferableTypeVar(_))

0 commit comments

Comments
 (0)