MCPcopy
hub / github.com/Textualize/rich / __exit__

Method __exit__

rich/console.py:438–447  ·  view source on GitHub ↗
(
        self,
        exc_type: Optional[Type[BaseException]],
        exc_val: Optional[BaseException],
        exc_tb: Optional[TracebackType],
    )

Source from the content-addressed store, hash-verified

436 return self
437
438 def __exit__(
439 self,
440 exc_type: Optional[Type[BaseException]],
441 exc_val: Optional[BaseException],
442 exc_tb: Optional[TracebackType],
443 ) -> None:
444 if self._changed:
445 self.console.set_alt_screen(False)
446 if self.hide_cursor:
447 self.console.show_cursor(True)
448
449
450class Group:

Callers

nothing calls this directly

Calls 2

set_alt_screenMethod · 0.80
show_cursorMethod · 0.45

Tested by

no test coverage detected