mirror of https://github.com/astral-sh/ruff
update non-cached signatures too
This commit is contained in:
parent
048cf419a4
commit
b3520b3692
|
|
@ -1181,19 +1181,17 @@ impl<'db> FunctionType<'db> {
|
||||||
nested: bool,
|
nested: bool,
|
||||||
) -> Option<Self> {
|
) -> Option<Self> {
|
||||||
let literal = self.literal(db);
|
let literal = self.literal(db);
|
||||||
let updated_signature = match self.updated_signature(db) {
|
let updated_signature = self
|
||||||
Some(signature) => Some(signature.recursive_type_normalized_impl(db, div, nested)?),
|
.signature(db)
|
||||||
None => None,
|
.recursive_type_normalized_impl(db, div, nested)?;
|
||||||
};
|
let updated_last_definition_signature = self
|
||||||
let updated_last_definition_signature = match self.updated_last_definition_signature(db) {
|
.last_definition_signature(db)
|
||||||
Some(signature) => Some(signature.recursive_type_normalized_impl(db, div, nested)?),
|
.recursive_type_normalized_impl(db, div, nested)?;
|
||||||
None => None,
|
|
||||||
};
|
|
||||||
Some(Self::new(
|
Some(Self::new(
|
||||||
db,
|
db,
|
||||||
literal,
|
literal,
|
||||||
updated_signature,
|
Some(updated_signature),
|
||||||
updated_last_definition_signature,
|
Some(updated_last_definition_signature),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue