https://realpython.com/python-metaclasses/#defining-a-class-dynamically https://docs.python.org/3/library/stdtypes.html#instance.__class__ https://habr.com/ru/post/145835/ https://docs.python.org/3/reference/datamodel.html https://www.python.org/dev/peps/pep-3115/