mirror of https://github.com/astral-sh/ruff
instance too
This commit is contained in:
parent
ef272e32e4
commit
ad8509dc22
|
|
@ -437,7 +437,10 @@ impl<'db> NominalInstanceType<'db> {
|
||||||
disjointness_visitor,
|
disjointness_visitor,
|
||||||
relation_visitor,
|
relation_visitor,
|
||||||
);
|
);
|
||||||
if result.union(db, compatible).is_always_satisfied(db) {
|
if result
|
||||||
|
.union(db, compatible)
|
||||||
|
.satisfied_by_all_typevars(db, inferable)
|
||||||
|
{
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue