E0104

Message

Return outside function

Description

Used when a return statement is found outside a function or method.

This message belongs to the basic checker.

Explanation

Python 2.6(?) and above raises a SyntaxError for this situation when importing the module. PyLint reports this error using this message, without depending on the import actually happening.


Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License