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

Method _getchar

typer/testing.py:215–222  ·  view source on GitHub ↗
(echo: bool)

Source from the content-addressed store, hash-verified

213 raise EOFError() from e
214
215 def _getchar(echo: bool) -> str:
216 char = sys.stdin.read(1)
217
218 if echo:
219 sys.stdout.write(char)
220
221 sys.stdout.flush()
222 return char
223
224 default_color = color
225

Callers

nothing calls this directly

Calls 3

readMethod · 0.45
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected