init_file_loadable_fields
- glotaran.project.dataclass_helpers.init_file_loadable_fields(dataclass_instance: DataclassInstance)[source]
Load objects into class when dataclass is initialized with paths.
If the class has file_loadable fields, this needs be called in the
__post_init__
method of that class.- Parameters:
dataclass_instance (DataclassInstance) – Instance of the dataclass being initialized. When used inside of
__post_init__
for the class itself useself
.
See also