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

Method visit_Constant

IPython/core/tests/test_interactiveshell.py:811–814  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

809
810 # 3.8 only
811 def visit_Constant(self, node):
812 if isinstance(node.value, str):
813 raise InputRejected("test")
814 return node
815
816
817class TestAstTransformInputRejection(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

InputRejectedClass · 0.90

Tested by

no test coverage detected