Path 1: 2 calls (0.5)

True (2)

1def clear(self, home: bool = True) -> None:
2        """Clear the screen.
3
4        Args:
5            home (bool, optional): Also move the cursor to 'home' position. Defaults to True.
6        """
7        if home:
8            self.control(Control.clear(), Control.home())
9        else:
10            self.control(Control.clear())
            

Path 2: 2 calls (0.5)

False (2)

1def clear(self, home: bool = True) -> None:
2        """Clear the screen.
3
4        Args:
5            home (bool, optional): Also move the cursor to 'home' position. Defaults to True.
6        """
7        if home:
8            self.control(Control.clear(), Control.home())
9        else:
10            self.control(Control.clear())