invalid-metaclass / E1139#
Invalid metaclass %r used
Emitted whenever we can detect that a class is using, as a metaclass, something which might be invalid for using as a metaclass.
class Apple(metaclass=int): # [invalid-metaclass] pass
class Plant: pass class Apple(Plant): pass
Created by the typecheck checker.