jangada.serialization.SerializableMetatype.copiable_properties#
- property SerializableMetatype.copiable_properties: dict[str, SerializableProperty]#
Get SerializableProperty descriptors marked as copiable.
- Returns:
- dict[str, SerializableProperty]
Dictionary mapping property names to copiable descriptors.
See also
Serializable.serializeUses copiable flag when is_copy=True
Notes
Copiable properties are those that should be persisted to disk. Non-copiable properties (like cached values or temporary state) are excluded from serialization when is_copy=True.
Examples
>>> class MyClass(Serializable): ... data = SerializableProperty(default=0, copiable=True) ... cache = SerializableProperty(default=0, copiable=False) ... >>> props = MyClass.copiable_properties >>> 'data' in props True >>> 'cache' in props False