return-outside-function (F706)
Added in v0.0.18 · Related issues · View source
Derived from the Pyflakes linter.
What it does
Checks for return statements outside of functions.
Why is this bad?
The use of a return statement outside of a function will raise a
SyntaxError.