from_dict

method of dascore.workflow.task.Task source

from_dict(
    document: dict[str, Any] ,
)-> ‘Task’

Return the task a document describes.

The tag is resolved through the model registry alone. A tag nothing registers raises rather than being imported: reading a document is not a reason to import whatever it names.