Path 1: 7 calls (0.27)

False (7)

1def start(self, refresh: bool = False) -> None:
2        """Start live rendering display.
3
4        Args:
5            refresh (bool, optional): Also refresh. Defaults to False.
6        """
7        with self._lock:
8            if self._started:
9                return
10            self.console.set_live(self)
11            self._started = True
12            if self._screen:
13                self._alt_screen = self.console.set_alt_screen(True)
14            self.console.show_cursor(False)
15            self._enable_redirect_io()
16            self.console.push_render_hook(self)
17            if refresh:
18                try:
19                    self.refresh()
20                except Exception:
21                    # If refresh fails, we want to stop the redirection of sys.stderr,
22                    # so the error stacktrace is properly displayed in the terminal.
23                    # (or, if the code that calls Rich captures the exception and wants to display something,
24                    # let this be displayed in the terminal).
25                    self.stop()
26                    raise
27            if self.auto_refresh:
28                self._refresh_thread = _RefreshThread(self, self.refresh_per_second)
29                self._refresh_thread.start()
            

Path 2: 7 calls (0.27)

True (7)

1def start(self, refresh: bool = False) -> None:
2        """Start live rendering display.
3
4        Args:
5            refresh (bool, optional): Also refresh. Defaults to False.
6        """
7        with self._lock:
8            if self._started:
9                return
10            self.console.set_live(self)
11            self._started = True
12            if self._screen:
13                self._alt_screen = self.console.set_alt_screen(True)
14            self.console.show_cursor(False)
15            self._enable_redirect_io()
16            self.console.push_render_hook(self)
17            if refresh:
18                try:
19                    self.refresh()
20                except Exception:
21                    # If refresh fails, we want to stop the redirection of sys.stderr,
22                    # so the error stacktrace is properly displayed in the terminal.
23                    # (or, if the code that calls Rich captures the exception and wants to display something,
24                    # let this be displayed in the terminal).
25                    self.stop()
26                    raise
27            if self.auto_refresh:
28                self._refresh_thread = _RefreshThread(self, self.refresh_per_second)
29                self._refresh_thread.start()
            

Path 3: 5 calls (0.19)

True (5)

1def start(self, refresh: bool = False) -> None:
2        """Start live rendering display.
3
4        Args:
5            refresh (bool, optional): Also refresh. Defaults to False.
6        """
7        with self._lock:
8            if self._started:
9                return
10            self.console.set_live(self)
11            self._started = True
12            if self._screen:
13                self._alt_screen = self.console.set_alt_screen(True)
14            self.console.show_cursor(False)
15            self._enable_redirect_io()
16            self.console.push_render_hook(self)
17            if refresh:
18                try:
19                    self.refresh()
20                except Exception:
21                    # If refresh fails, we want to stop the redirection of sys.stderr,
22                    # so the error stacktrace is properly displayed in the terminal.
23                    # (or, if the code that calls Rich captures the exception and wants to display something,
24                    # let this be displayed in the terminal).
25                    self.stop()
26                    raise
27            if self.auto_refresh:
28                self._refresh_thread = _RefreshThread(self, self.refresh_per_second)
29                self._refresh_thread.start()
            

Path 4: 3 calls (0.12)

False (3)

1def start(self, refresh: bool = False) -> None:
2        """Start live rendering display.
3
4        Args:
5            refresh (bool, optional): Also refresh. Defaults to False.
6        """
7        with self._lock:
8            if self._started:
9                return
10            self.console.set_live(self)
11            self._started = True
12            if self._screen:
13                self._alt_screen = self.console.set_alt_screen(True)
14            self.console.show_cursor(False)
15            self._enable_redirect_io()
16            self.console.push_render_hook(self)
17            if refresh:
18                try:
19                    self.refresh()
20                except Exception:
21                    # If refresh fails, we want to stop the redirection of sys.stderr,
22                    # so the error stacktrace is properly displayed in the terminal.
23                    # (or, if the code that calls Rich captures the exception and wants to display something,
24                    # let this be displayed in the terminal).
25                    self.stop()
26                    raise
27            if self.auto_refresh:
28                self._refresh_thread = _RefreshThread(self, self.refresh_per_second)
29                self._refresh_thread.start()
            

Path 5: 2 calls (0.08)

False (1) True (1)

1def start(self, refresh: bool = False) -> None:
2        """Start live rendering display.
3
4        Args:
5            refresh (bool, optional): Also refresh. Defaults to False.
6        """
7        with self._lock:
8            if self._started:
9                return
10            self.console.set_live(self)
11            self._started = True
12            if self._screen:
13                self._alt_screen = self.console.set_alt_screen(True)
14            self.console.show_cursor(False)
15            self._enable_redirect_io()
16            self.console.push_render_hook(self)
17            if refresh:
18                try:
19                    self.refresh()
20                except Exception:
21                    # If refresh fails, we want to stop the redirection of sys.stderr,
22                    # so the error stacktrace is properly displayed in the terminal.
23                    # (or, if the code that calls Rich captures the exception and wants to display something,
24                    # let this be displayed in the terminal).
25                    self.stop()
26                    raise
27            if self.auto_refresh:
28                self._refresh_thread = _RefreshThread(self, self.refresh_per_second)
29                self._refresh_thread.start()
            

Path 6: 1 calls (0.04)

False (1)

LiveError (1)

1def start(self, refresh: bool = False) -> None:
2        """Start live rendering display.
3
4        Args:
5            refresh (bool, optional): Also refresh. Defaults to False.
6        """
7        with self._lock:
8            if self._started:
9                return
10            self.console.set_live(self)
11            self._started = True
12            if self._screen:
13                self._alt_screen = self.console.set_alt_screen(True)
14            self.console.show_cursor(False)
15            self._enable_redirect_io()
16            self.console.push_render_hook(self)
17            if refresh:
18                try:
19                    self.refresh()
20                except Exception:
21                    # If refresh fails, we want to stop the redirection of sys.stderr,
22                    # so the error stacktrace is properly displayed in the terminal.
23                    # (or, if the code that calls Rich captures the exception and wants to display something,
24                    # let this be displayed in the terminal).
25                    self.stop()
26                    raise
27            if self.auto_refresh:
28                self._refresh_thread = _RefreshThread(self, self.refresh_per_second)
29                self._refresh_thread.start()
            

Path 7: 1 calls (0.04)

True (1)

1def start(self, refresh: bool = False) -> None:
2        """Start live rendering display.
3
4        Args:
5            refresh (bool, optional): Also refresh. Defaults to False.
6        """
7        with self._lock:
8            if self._started:
9                return
10            self.console.set_live(self)
11            self._started = True
12            if self._screen:
13                self._alt_screen = self.console.set_alt_screen(True)
14            self.console.show_cursor(False)
15            self._enable_redirect_io()
16            self.console.push_render_hook(self)
17            if refresh:
18                try:
19                    self.refresh()
20                except Exception:
21                    # If refresh fails, we want to stop the redirection of sys.stderr,
22                    # so the error stacktrace is properly displayed in the terminal.
23                    # (or, if the code that calls Rich captures the exception and wants to display something,
24                    # let this be displayed in the terminal).
25                    self.stop()
26                    raise
27            if self.auto_refresh:
28                self._refresh_thread = _RefreshThread(self, self.refresh_per_second)
29                self._refresh_thread.start()