mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-03 21:23:45 +00:00
## Summary Fixes #10174 by allowing match cases to be enclosing nodes for suppression comments. `else/elif` clauses are now also allowed to be enclosing nodes. ## Test Plan I've added the offending code from the original issue to the `RUF028` snapshot test, and I've also expanded it to test the allowed `else/elif` clause. |
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| __init__.py | ||
| Cargo.toml | ||