MCPcopy Index your code
hub / github.com/python/cpython / mock_Shell

Class mock_Shell

Lib/idlelib/idle_test/test_calltip.py:280–287  ·  view source on GitHub ↗

Return mock sufficient to pass to hyperparser.

Source from the content-addressed store, hash-verified

278# The default mocks are what are needed for open_calltip.
279
280class mock_Shell:
281 "Return mock sufficient to pass to hyperparser."
282 def __init__(self, text):
283 text.tag_prevrange = Mock(return_value=None)
284 self.text = text
285 self.prompt_last_line = ">>> "
286 self.indentwidth = 4
287 self.tabwidth = 8
288
289
290class mock_TipWindow:

Callers 1

setUpClassMethod · 0.85

Calls

no outgoing calls

Tested by 1

setUpClassMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…