MCPcopy
hub / github.com/pallets/click / hidden_input

Method hidden_input

src/click/testing.py:486–492  ·  view source on GitHub ↗
(prompt: str | None = None)

Source from the content-addressed store, hash-verified

484
485 @_pause_echo(echo_input) # type: ignore
486 def hidden_input(prompt: str | None = None) -> str:
487 sys.stdout.write(f"{prompt or ''}\n")
488 sys.stdout.flush()
489 try:
490 return next(text_input).rstrip("\r\n")
491 except StopIteration as e:
492 raise EOFError() from e
493
494 @_pause_echo(echo_input) # type: ignore
495 def _getchar(echo: bool) -> str:

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected