devctrl.task.sweeps.find_hierarchy#

find_hierarchy(task: Task) → tuple[str, GroupHierarchy] | None[source]#

Return the first hierarchy field of the task.

Parameters:

task – Task to inspect.

Returns:

(dotted field path, hierarchy instance), or None if the task has no GroupHierarchy-typed field.