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

Function get_text_stdin

src/click/_compat.py:337–341  ·  view source on GitHub ↗
(encoding: str | None = None, errors: str | None = None)

Source from the content-addressed store, hash-verified

335
336
337def get_text_stdin(encoding: str | None = None, errors: str | None = None) -> t.TextIO:
338 rv = _get_windows_console_stream(sys.stdin, encoding, errors)
339 if rv is not None:
340 return rv
341 return _force_correct_text_reader(sys.stdin, encoding, errors, force_readable=True)
342
343
344def get_text_stdout(encoding: str | None = None, errors: str | None = None) -> t.TextIO:

Callers 1

open_streamFunction · 0.85

Calls 2

Tested by

no test coverage detected