invalid-class-object / E0243#
Invalid assignment to '__class__'. Should be a class definition but got a '%s'
Used when an invalid object is assigned to a __class__ property. Only a class is permitted.
class Apple: pass Apple.__class__ = 1 # [invalid-class-object]
class Apple: pass class RedDelicious: pass Apple.__class__ = RedDelicious
Created by the classes checker.