Path 1: 4 calls (1.0)

Table (4)

None (4)

'layout.tree.column' (3) 'layout.tree.row' (1)

True (4)

False (4)

Tree (4)

1def add(
2        self,
3        label: RenderableType,
4        *,
5        style: Optional[StyleType] = None,
6        guide_style: Optional[StyleType] = None,
7        expanded: bool = True,
8        highlight: Optional[bool] = False,
9    ) -> "Tree":
10        """Add a child tree.
11
12        Args:
13            label (RenderableType): The renderable or str for the tree label.
14            style (StyleType, optional): Style of this tree. Defaults to "tree".
15            guide_style (StyleType, optional): Style of the guide lines. Defaults to "tree.line".
16            expanded (bool, optional): Also display children. Defaults to True.
17            highlight (Optional[bool], optional): Highlight renderable (if str). Defaults to False.
18
19        Returns:
20            Tree: A new child Tree, which may be further modified.
21        """
22        node = Tree(
23            label,
24            style=self.style if style is None else style,
25            guide_style=self.guide_style if guide_style is None else guide_style,
26            expanded=expanded,
27            highlight=self.highlight if highlight is None else highlight,
28        )
29        self.children.append(node)
30        return node