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
targetClass
or file path.- Parameters:
Notes
This also requires to add
init_file_loadable_fields
in the__post_init__
method.- Returns:
Instance of
targetClass
.- Return type:
FileLoadable
See also