resolve_patch_function

function of dascore.utils.patch_registry source

resolve_patch_function(
    name: str ,
    module: str | None[str, None] = None,
)

Return the patch function a tag names, else say what is missing.

Nothing a tag names is imported to answer this, since a stored tag would otherwise be a way to run whatever it names. The sweep imports only what the install declares: DASCore’s own deferred modules and the namespaces plugins register through entry points.

Parameters

Parameter Description
name The tag, as patch_function_tag spells one.
module Where the function was defined, if known. Used only to say what to
import.