mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:55:08 +00:00
![]() ## Summary Given: ```python baz: Annotated[ str, [qux for qux in foo], ] ``` We treat `baz` as `BindingKind::Annotation`, to ensure that references to `baz` are marked as unbound. However, we were _also_ treating `qux` as `BindingKind::Annotation`, which meant that the load in the comprehension _also_ errored. Closes https://github.com/astral-sh/ruff/issues/7879. |
||
---|---|---|
.. | ||
fixtures | ||
package | ||
project | ||
disallowed_rule_names.txt |