Metaclass not recognized if deriving indirectly from type
Brought to you by:
fabioz
In this:
class DirectMeta(type):
def __init__(cls, classname, bases, dict_):
pass
class IndirectMeta(DirectMeta):
def __init__(cls, classname, bases, dict_):
pass
the first class is correctly recognized as a metaclass, pydev does not complain about the cls parameter instead of self.
But the second class gets an error flagged on __init__, saying it "should have self as first parameter". This is wrong, the first parameter should be cls because the class derives from type, albeit indirectly.
(I thought I reported this earlier, but I can't find it — if this is a dupe, then sorry!)