MCPcopy Create free account
hub / github.com/ipython/ipython / push

Method push

IPython/core/inputtransformer.py:46–55  ·  view source on GitHub ↗

Send a line of input to the transformer, returning the transformed input or None if the transformer is waiting for more input. Must be overridden by subclasses. Implementations may raise ``SyntaxError`` if the input is invalid. No other exceptions may be rai

(self, line)

Source from the content-addressed store, hash-verified

44
45 @abc.abstractmethod
46 def push(self, line):
47 """Send a line of input to the transformer, returning the transformed
48 input or None if the transformer is waiting for more input.
49
50 Must be overridden by subclasses.
51
52 Implementations may raise ``SyntaxError`` if the input is invalid. No
53 other exceptions may be raised.
54 """
55 pass
56
57 @abc.abstractmethod
58 def reset(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected