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

Class IPythonValidator

src/ptpython/ipython.py:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66
67class IPythonValidator(PythonValidator):
68 def __init__(self, *args, **kwargs):
69 super().__init__(*args, **kwargs)
70 self.isp = TransformerManager()
71
72 def validate(self, document: Document) -> None:
73 document = Document(text=self.isp.transform_cell(document.text))
74 super().validate(document)
75
76
77def create_ipython_grammar():

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected