pylint #70502 Meta classes [open]
Method __new__ ... should have cls or self as first parameter
This should be widened to include mcs The convention for a meta class is
def __new__(mcs, classname, bases, class_dict): | |
priority | normal |
---|---|
type | enhancement |
done in | <not specified> |
closed by | <not specified> |
Comments
-
2011/08/01 14:07, written by anon
add commentself as first parameter of __new__ seems wrong; cls is correct.
For metaclasses, I’m not sure there’s one convention. metaclass and mcs seem to be used. —merwok