mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 07:34:06 -05:00
Remove BindingKind::ComprehensionVar (#12347)
## Summary This doesn't seem to be used anywhere. Maybe it mattered when we didn't handle generator scopes properly?
This commit is contained in:
@@ -467,12 +467,6 @@ pub enum BindingKind<'a> {
|
||||
/// ```
|
||||
LoopVar,
|
||||
|
||||
/// A binding for a comprehension variable, like `x` in:
|
||||
/// ```python
|
||||
/// [x for x in range(10)]
|
||||
/// ```
|
||||
ComprehensionVar,
|
||||
|
||||
/// A binding for a with statement variable, like `x` in:
|
||||
/// ```python
|
||||
/// with open('foo.py') as x:
|
||||
|
||||
Reference in New Issue
Block a user