mirror of https://github.com/astral-sh/ruff
format, really?!?!
This commit is contained in:
parent
3384392747
commit
8c7e20abd6
|
|
@ -1909,11 +1909,7 @@ impl<'db> Type<'db> {
|
||||||
/// This uses `TypeRelation::ConstraintSetAssignability`, which encodes typevar relations into
|
/// This uses `TypeRelation::ConstraintSetAssignability`, which encodes typevar relations into
|
||||||
/// a constraint set and lets `satisfied_by_all_typevars` perform existential vs universal
|
/// a constraint set and lets `satisfied_by_all_typevars` perform existential vs universal
|
||||||
/// reasoning depending on inferable typevars.
|
/// reasoning depending on inferable typevars.
|
||||||
pub fn is_constraint_set_assignable_to(
|
pub fn is_constraint_set_assignable_to(self, db: &'db dyn Db, target: Type<'db>) -> bool {
|
||||||
self,
|
|
||||||
db: &'db dyn Db,
|
|
||||||
target: Type<'db>,
|
|
||||||
) -> bool {
|
|
||||||
self.when_constraint_set_assignable_to(db, target, InferableTypeVars::None)
|
self.when_constraint_set_assignable_to(db, target, InferableTypeVars::None)
|
||||||
.is_always_satisfied(db)
|
.is_always_satisfied(db)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue