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,
|
||||
) -> Option<Self> {
|
||||
let literal = self.literal(db);
|
||||
let updated_signature = match self.updated_signature(db) {
|
||||
Some(signature) => Some(signature.recursive_type_normalized_impl(db, div, nested)?),
|
||||
None => None,
|
||||
};
|
||||
let updated_last_definition_signature = match self.updated_last_definition_signature(db) {
|
||||
Some(signature) => Some(signature.recursive_type_normalized_impl(db, div, nested)?),
|
||||
None => None,
|
||||
};
|
||||
let updated_signature = self
|
||||
.signature(db)
|
||||
.recursive_type_normalized_impl(db, div, nested)?;
|
||||
let updated_last_definition_signature = self
|
||||
.last_definition_signature(db)
|
||||
.recursive_type_normalized_impl(db, div, nested)?;
|
||||
Some(Self::new(
|
||||
db,
|
||||
literal,
|
||||
updated_signature,
|
||||
updated_last_definition_signature,
|
||||
Some(updated_signature),
|
||||
Some(updated_last_definition_signature),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue