You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. How can I create a class that is a msgspec.struct class, but it is not intended to be instantiated directly?
Example:
class Entity(msgspec.Struct, ABC):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
make[1]: *** [run] Error 1
The text was updated successfully, but these errors were encountered:
Question
Hi. How can I create a class that is a msgspec.struct class, but it is not intended to be instantiated directly?
Example:
The text was updated successfully, but these errors were encountered: