MCPcopy
hub / github.com/sphinx-doc/sphinx / input_

Function input_

tests/test_quickstart.py:32–43  ·  view source on GitHub ↗
(prompt: str)

Source from the content-addressed store, hash-verified

30 called = set()
31
32 def input_(prompt: str) -> str:
33 if prompt in called:
34 raise AssertionError(
35 'answer for %r missing and no default present' % prompt
36 )
37 called.add(prompt)
38 for question, answer in answers.items():
39 if prompt.startswith(qs.PROMPT_PREFIX + question):
40 return answer
41 if needanswer:
42 raise AssertionError('answer for %r missing' % prompt)
43 return ''
44
45 return input_
46

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…