pg.symbolic.ObjectMeta¶
Accessible via pg.symbolic.ObjectMeta
.
- class ObjectMeta(name, bases, namespace, **kwargs)[source]¶
Bases:
ABCMeta
Meta class for pg.Object.
Methods:
apply_schema
(schema)Applies a schema to a symbolic class.
register_for_deserialization
([...])Register current symbolic class for deserialization.
Attributes:
Gets __init__ positional argument list.
Gets symbolic field.
- apply_schema(schema)[source]¶
Applies a schema to a symbolic class.
- Return type:
- Parameters:
schema – The schema that will be applied to class. If cls was attached with an existing schema. The old schema will be dropped.