mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:34:57 +00:00
[ty] Discard Definition
s when normalizing Signature
s (#19615)
This commit is contained in:
parent
a54061e757
commit
81867ea7ce
1 changed files with 3 additions and 1 deletions
|
@ -383,7 +383,9 @@ impl<'db> Signature<'db> {
|
|||
inherited_generic_context: self
|
||||
.inherited_generic_context
|
||||
.map(|ctx| ctx.normalized_impl(db, visitor)),
|
||||
definition: self.definition,
|
||||
// Discard the definition when normalizing, so that two equivalent signatures
|
||||
// with different `Definition`s share the same Salsa ID when normalized
|
||||
definition: None,
|
||||
parameters: self
|
||||
.parameters
|
||||
.iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue