mirror of https://github.com/astral-sh/ruff
[ty] Skip over expressions in auto-import AST scanning
This commit is contained in:
parent
5da45f8ec7
commit
086f1e0b89
|
|
@ -569,6 +569,10 @@ impl SourceOrderVisitor<'_> for SymbolVisitor {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: We might consider handling walrus expressions
|
||||
// here, since they can be used to introduce new names.
|
||||
fn visit_expr(&mut self, _expr: &ast::Expr) {}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
|
|||
Loading…
Reference in New Issue