no-self-use / R6301#

Message emitted:

Method could be a function

Description:

Used when a method doesn't use its bound instance, and so could be written as a function.

Correct code:

# This is a placeholder for correct code for this message.

Additional details:

You can help us make the doc better by contributing !

Note

This message is emitted by the optional 'no_self_use' checker which requires the pylint.extensions.no_self_use plugin to be loaded.

Created by the no_self_use checker.