file_loadable_field
- glotaran.project.dataclass_helpers.file_loadable_field(targetClass: type[FileLoadable], *, is_wrapper_class=False) FileLoadable[source]
Create a dataclass field which can be and object of type
targetClassor file path.- Parameters:
Notes
This also requires to add
init_file_loadable_fieldsin the__post_init__method.- Returns:
Instance of
targetClass.- Return type:
FileLoadable
See also