mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-18 03:36:18 +00:00
one more comment for the road
This commit is contained in:
parent
eb451dc7eb
commit
137a057a72
1 changed files with 4 additions and 0 deletions
|
|
@ -1475,6 +1475,8 @@ impl<'db> InteriorNode<'db> {
|
|||
path.assignments[new_range]
|
||||
.iter()
|
||||
.filter(|assignment| {
|
||||
// Don't add back any derived facts if they reference the typevar
|
||||
// that we're trying to remove!
|
||||
!assignment
|
||||
.constraint()
|
||||
.typevar(db)
|
||||
|
|
@ -1493,6 +1495,8 @@ impl<'db> InteriorNode<'db> {
|
|||
path.assignments[new_range]
|
||||
.iter()
|
||||
.filter(|assignment| {
|
||||
// Don't add back any derived facts if they reference the typevar
|
||||
// that we're trying to remove!
|
||||
!assignment
|
||||
.constraint()
|
||||
.typevar(db)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue