def format_selectors(selectors: list[SelectorType]) -> str:
    """Build the path to the selected command graph node"""
    path_elements = []
    for name, selector in selectors:
        if selector is not None:
            path_elements.append(f"{name}[{selector}]")
        else:
            path_elements.append(name)
    return ".".join(path_elements)
Build the path to the selected command graph node
libqtile/command/interface.py