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

Function _force_correct_text_writer

src/click/_compat.py:300–313  ·  view source on GitHub ↗
(
    text_writer: t.IO[t.Any],
    encoding: str | None,
    errors: str | None,
    force_writable: bool = False,
)

Source from the content-addressed store, hash-verified

298
299
300def _force_correct_text_writer(
301 text_writer: t.IO[t.Any],
302 encoding: str | None,
303 errors: str | None,
304 force_writable: bool = False,
305) -> t.TextIO:
306 return _force_correct_text_stream(
307 text_writer,
308 encoding,
309 errors,
310 _is_binary_writer,
311 _find_binary_writer,
312 force_writable=force_writable,
313 )
314
315
316def get_binary_stdin() -> t.BinaryIO:

Callers 2

get_text_stdoutFunction · 0.85
get_text_stderrFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…