Skip to content
Myr

Fix documentation

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kevin Deldycke · committed by Kevin Deldycke · parent 1aa2d53 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:src/click/_termui_impl.py+1 added-1 removed
429 unmodified lines
430@contextlib.contextmanager431def get_pager_file(color: bool | None = None) -> t.Generator[t.TextIO, None, None]:432 """Context manager.433 Yields a writable file-like object which can be used as an output pager.434 .. versionadded:: 8.2434 .. versionadded:: 8.4435 :param color: controls if the pager supports ANSI colors or not. The436 default is autodetection.437 """438 with _pager_contextmanager(color=color) as (stream, encoding, color):
471 unmodified lines
modified:CHANGES.rst+1 added-1 removed
53 unmodified lines
54 commands. :issue:`3107` :pr:`3228`55- Use :class:`ValueError` message when conversion in :class:`FuncParamType` would56 fail. :issue:`3105` :pr:`3211`57- Add ``click.get_pager_file`` for file-like access to an output58 pager. :pr:`1572`58 pager. :pr:`1572` :pr:`3405`59- :class:`~click.formatting.TextWrapper` and60 :func:`~click.formatting.wrap_text` now measure line width in visible61 characters, ignoring ANSI escape sequences. :pr:`3420`62- Show custom error messages from types when :func:`prompt` with
1400 unmodified lines