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

Class ClassicPrompt

src/ptpython/prompt_style.py:67–79  ·  view source on GitHub ↗

The classic Python prompt.

Source from the content-addressed store, hash-verified

65
66
67class ClassicPrompt(PromptStyle):
68 """
69 The classic Python prompt.
70 """
71
72 def in_prompt(self) -> AnyFormattedText:
73 return [("class:prompt", ">>> ")]
74
75 def in2_prompt(self, width: int) -> AnyFormattedText:
76 return [("class:prompt.dots", "...")]
77
78 def out_prompt(self) -> AnyFormattedText:
79 return []

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected