@classmethod
def test(cls):
    print(cls.instance)
cls.instance = cls()
print(cls.__dict__['instance'])
print('still ok')
print(cls.instance)
print("you won't see me")
print(type.__getattribute__(cls, 'instance'))
A.test()
Странность доступа к переменным в производной QObject