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
Noneif the task has noGroupHierarchy-typed field.