We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d2738e commit dd9abdfCopy full SHA for dd9abdf
crates/ty_python_semantic/src/types.rs
@@ -2417,7 +2417,9 @@ impl<'db> Type<'db> {
2417
(
2418
Type::NonInferableTypeVar(self_bound_typevar),
2419
Type::NonInferableTypeVar(other_bound_typevar),
2420
- ) if self_bound_typevar == other_bound_typevar => ConstraintSet::from(false),
+ ) if self_bound_typevar.identity(db) == other_bound_typevar.identity(db) => {
2421
+ ConstraintSet::from(false)
2422
+ }
2423
2424
(tvar @ Type::NonInferableTypeVar(_), Type::Intersection(intersection))
2425
| (Type::Intersection(intersection), tvar @ Type::NonInferableTypeVar(_))
0 commit comments