I was trying to set a type attribute to a class using the Python built-in setattr. I\'ve declared __new__ and __init__ methods in the
setattr
__new__
__init__