return ret


class C(B):
    pass
if __name__ == '__main__':
    b = B()
print(b.x)
print(type(b))
print(isinstance(b, B))
print(isinstance(b, A))
c = C()
print(type(C))
How to set the class of value returned by __new__ without using super?