MCPcopy
hub / github.com/fastapi/typer / hidden_input

Method hidden_input

typer/testing.py:207–213  ·  view source on GitHub ↗
(prompt: str | None = None)

Source from the content-addressed store, hash-verified

205 return val
206
207 def hidden_input(prompt: str | None = None) -> str:
208 sys.stdout.write(f"{prompt or ''}\n")
209 sys.stdout.flush()
210 try:
211 return next(text_input).rstrip("\r\n")
212 except StopIteration as e: # pragma: no cover
213 raise EOFError() from e
214
215 def _getchar(echo: bool) -> str:
216 char = sys.stdin.read(1)

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected