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

Method _display_result

src/ptpython/printer.py:108–120  ·  view source on GitHub ↗
(
        self,
        lines: Iterable[StyleAndTextTuples],
        *,
        paginate: bool,
    )

Source from the content-addressed store, hash-verified

106 )
107
108 def _display_result(
109 self,
110 lines: Iterable[StyleAndTextTuples],
111 *,
112 paginate: bool,
113 ) -> None:
114 if paginate:
115 self._print_paginated_formatted_text(lines)
116 else:
117 for line in lines:
118 self._print_formatted_text(line)
119
120 self.output.flush()
121
122 def _print_formatted_text(self, line: StyleAndTextTuples, end: str = "\n") -> None:
123 print_formatted_text(

Callers 3

display_resultMethod · 0.95
display_exceptionMethod · 0.95

Calls 3

_print_formatted_textMethod · 0.95
flushMethod · 0.80

Tested by

no test coverage detected