ruff/crates/ruff_linter
Abhijeet Prasad Bodas cf59cee928
[syntax-errors] nonlocal declaration at module level (#17559)
## Summary

Part of #17412

Add a new compile-time syntax error for detecting `nonlocal`
declarations at a module level.

## Test Plan

- Added new inline tests for the syntax error
- Updated existing tests for `nonlocal` statement parsing to be inside a
function scope

Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
2025-04-24 16:11:46 -04:00
..
resources [pyupgrade] Preserve parenthesis when fixing native literals containing newlines (UP018) (#17220) 2025-04-24 08:48:02 +02:00
src [syntax-errors] nonlocal declaration at module level (#17559) 2025-04-24 16:11:46 -04:00
Cargo.toml Bump 0.11.7 (#17613) 2025-04-24 13:06:38 -05:00