PySide::ClassProperty Namespace
namespace PySide::ClassPropertyNamespace for the class property metaclass. More...
| Header: | #include <class_property.h> |
Detailed Description
PYSIDE-2230: Why is this metaclass necessary? The problem is that the property object already exists as a Python object. We derive a subclass for class properties, without repeating everything but just by adding something to support the class-ness.
But this Python property has as metaclass `type` which is incompatible now with SbkObjectType, which generates physically larger types that are incompatible with properties by using PEP 697. Adding a compatible metaclass that is unrelated to `SbkObjectType` is the correct solution. Re-using `SbkObjectType` was actually an abuse, since Python properties are in no way PySide objects.