SourceForge has been redesigned. Learn more.
Close

#297 @classmethod parameter (cls) not used.

0.8.19
open
nobody
None
5
2011-06-25
2011-06-25
niknah
No

Run pychecker on the below code, it'll warn about the "cls" parameter not getting used in the first class but not the 2nd class.
If the functions were normal methods instead of classmethods it won't warn about both.

class x:
@classmethod
def y(cls,z):
z.a()
pass

class x2:
@classmethod
def y2(cls):
pass

Discussion


Log in to post a comment.