pylint #33636 Class methods of metaclasses ignored [open]
#!/usr/bin/env python2.6 class MetaClass(type): def test(cls): print "Hello world from " + cls.__name__ class Test(object): __metaclass__ = MetaClass Test.test()
leads to the following errors:
C0203: 3:MetaClass.test: Metaclass method should have "mcs" as first argument R0903: 6:Test: Too few public methods (0/2) E1101: 9: Class 'Test' has no 'test' member
The first is an instance of #4014, but the third seems to be an issue not covered yet. The same error applies for built-in metaclasses like abc.ABCMeta.
|appeared in||<not specified>|
|done in||<not specified>|
|closed by||<not specified>|