E0211

Message

Method has no argument

Description

Used when a method which should have the bound instance as first argument has no argument defined.

This message belongs to the classes checker.

Explanation

The first argument of a method in Python must be the object on which the method is invoked. This object may be the instance of a class or a class. The name of that argument follows certain conventions. See PEP 8: Function and Method Arguments for details.


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