italicize cls for static methods
Brought to you by:
fabioz
For "normal" instance methods "self" refers to the
object in question. For static methods (class methods),
the parameter "self" should be changed to "cls":
class MyClass(object):
@classmethod
def some_method(cls):
cls.do_something()
"cls" should be displayed in italics, just like "self"
in the usual case, and omitted from the parameter list
when auto-completing.