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

Method visible_input

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

Source from the content-addressed store, hash-verified

473
474 @_pause_echo(echo_input) # type: ignore
475 def visible_input(prompt: str | None = None) -> str:
476 sys.stdout.write(prompt or "")
477 try:
478 val = next(text_input).rstrip("\r\n")
479 except StopIteration as e:
480 raise EOFError() from e
481 sys.stdout.write(f"{val}\n")
482 sys.stdout.flush()
483 return val
484
485 @_pause_echo(echo_input) # type: ignore
486 def hidden_input(prompt: str | None = None) -> str:

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected