mirror of https://github.com/astral-sh/ruff
fix compile error after rebase
This commit is contained in:
parent
d67207283b
commit
d72f767b09
|
|
@ -472,7 +472,9 @@ impl<'db> NarrowingConstraintsBuilder<'db> {
|
||||||
union.map(db, |ty| filter_to_cannot_be_equal(db, *ty, rhs_ty))
|
union.map(db, |ty| filter_to_cannot_be_equal(db, *ty, rhs_ty))
|
||||||
}
|
}
|
||||||
// Treat `bool` as `Literal[True, False]`.
|
// Treat `bool` as `Literal[True, False]`.
|
||||||
Type::NominalInstance(instance) if instance.class().is_known(db, KnownClass::Bool) => {
|
Type::NominalInstance(instance)
|
||||||
|
if instance.class().is_known(db, KnownClass::Bool) =>
|
||||||
|
{
|
||||||
UnionType::from_elements(
|
UnionType::from_elements(
|
||||||
db,
|
db,
|
||||||
[Type::BooleanLiteral(true), Type::BooleanLiteral(false)]
|
[Type::BooleanLiteral(true), Type::BooleanLiteral(false)]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue