ruff
da32a83c - [syntax-errors] `return` outside function (#17300)

Commit
154 days ago
[syntax-errors] `return` outside function (#17300) Summary -- This PR reimplements [return-outside-function (F706)](https://docs.astral.sh/ruff/rules/return-outside-function/) as a semantic syntax error. These changes are very similar to those in https://github.com/astral-sh/ruff/pull/17298. Test Plan -- New linter tests, plus existing F706 tests.
Author
Parents
Loading