Question
If I do
class MsgspecEntity(msgspec.Struct, Generic[P], gc=False):
I get the following error:
ValueError: Cannot set gc=False when inheriting from non-struct types
I suppose I can work around this by dynamically redefining the struct for each possible P type, to avoid using Generic, but is this expected? It would be easier if Generic were excluded from the above restriction.
Question
If I do
I get the following error:
I suppose I can work around this by dynamically redefining the struct for each possible
Ptype, to avoid usingGeneric, but is this expected? It would be easier ifGenericwere excluded from the above restriction.