mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:45:24 +00:00
![]() ## Summary I believe these should always bind more tightly -- e.g., in: ```python for _ in bar(baz for foo in [1]): pass ``` The inner `baz` and `foo` should be considered comprehension variables, not for loop bindings. We need to revisit this more holistically. In some of these cases, `BindingKind` should probably be a flag, not an enum, since the values aren't mutually exclusive. Separately, we should probably be more precise in how we set it (e.g., by passing down from the parent rather than sniffing in `handle_node_store`). Closes https://github.com/astral-sh/ruff/issues/12339 |
||
---|---|---|
.. | ||
resources | ||
src | ||
__init__.py | ||
Cargo.toml |