to_dependency

dasha.web.templates.utils.to_dependency(type_, dep)[source]

Convert a dependency object to another type_.

Parameters
type_str

The type to convert to, choosing from “state”, “input”, or “output”.