MCPcopy Index your code
hub / github.com/prompt-toolkit/ptpython / _get_output_printer

Method _get_output_printer

src/ptpython/repl.py:141–148  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

139 self._handle_keyboard_interrupt(e)
140
141 def _get_output_printer(self) -> OutputPrinter:
142 return OutputPrinter(
143 output=self.app.output,
144 input=self.app.input,
145 style=self._current_style,
146 style_transformation=self.style_transformation,
147 title=self.title,
148 )
149
150 def _show_result(self, result: object) -> None:
151 self._get_output_printer().display_result(

Callers 3

_show_resultMethod · 0.95
_handle_exceptionMethod · 0.95

Calls 1

OutputPrinterClass · 0.85

Tested by

no test coverage detected