Path 1: 42 calls (0.72)

False (21) True (21)

True (42)

1def show_cursor(self, show: bool = True) -> bool:
2        """Show or hide the cursor.
3
4        Args:
5            show (bool, optional): Set visibility of the cursor.
6        """
7        if self.is_terminal:
8            self.control(Control.show_cursor(show))
9            return True
10        return False
            

Path 2: 16 calls (0.28)

False (8) True (8)

False (16)

1def show_cursor(self, show: bool = True) -> bool:
2        """Show or hide the cursor.
3
4        Args:
5            show (bool, optional): Set visibility of the cursor.
6        """
7        if self.is_terminal:
8            self.control(Control.show_cursor(show))
9            return True
10        return False