mirror of https://github.com/astral-sh/ruff
Nits
This commit is contained in:
parent
f0f60805de
commit
0304c31989
|
|
@ -2717,7 +2717,7 @@ impl<'db> Type<'db> {
|
||||||
(Type::ClassLiteral(class), Type::GenericAlias(target_alias)) => {
|
(Type::ClassLiteral(class), Type::GenericAlias(target_alias)) => {
|
||||||
class.default_specialization(db).has_relation_to_impl(
|
class.default_specialization(db).has_relation_to_impl(
|
||||||
db,
|
db,
|
||||||
ClassType::from(target_alias),
|
ClassType::Generic(target_alias),
|
||||||
inferable,
|
inferable,
|
||||||
relation,
|
relation,
|
||||||
relation_visitor,
|
relation_visitor,
|
||||||
|
|
@ -2727,9 +2727,9 @@ impl<'db> Type<'db> {
|
||||||
|
|
||||||
// For generic aliases, we delegate to the underlying class type.
|
// For generic aliases, we delegate to the underlying class type.
|
||||||
(Type::GenericAlias(self_alias), Type::GenericAlias(target_alias)) => {
|
(Type::GenericAlias(self_alias), Type::GenericAlias(target_alias)) => {
|
||||||
ClassType::from(self_alias).has_relation_to_impl(
|
ClassType::Generic(self_alias).has_relation_to_impl(
|
||||||
db,
|
db,
|
||||||
ClassType::from(target_alias),
|
ClassType::Generic(target_alias),
|
||||||
inferable,
|
inferable,
|
||||||
relation,
|
relation,
|
||||||
relation_visitor,
|
relation_visitor,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue