Skip to content

Commit 736c1a8

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/filelike-pager' into filelike-pager
2 parents bdb11b2 + c5f9806 commit 736c1a8

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/click/_termui_impl.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,13 @@ def _pipepager(cmd: str, color: t.Optional[bool]) -> t.Generator[t.Tuple[t.Binar
447447

448448

449449
@contextlib.contextmanager
450+
<<<<<<< HEAD
450451
def _tempfilepager(cmd: str, color: t.Optional[bool]=None) -> t.Generator[t.Tuple[t.BinaryIO, str, bool], None, None]:
452+
||||||| 2e06de8
453+
def _tempfilepager(cmd: str, color: t.Optional[bool]=None):
454+
=======
455+
def _tempfilepager(cmd: str, color: t.Optional[bool] = None):
456+
>>>>>>> refs/remotes/origin/filelike-pager
451457
"""Page through text by invoking a program on a temporary file."""
452458
import tempfile
453459

@@ -459,7 +465,13 @@ def _tempfilepager(cmd: str, color: t.Optional[bool]=None) -> t.Generator[t.Tupl
459465

460466

461467
@contextlib.contextmanager
468+
<<<<<<< HEAD
462469
def _nullpager(stream: t.TextIO, color: t.Optional[bool]=None) -> t.Generator[t.Tuple[t.BinaryIO, str, bool], None, None]:
470+
||||||| 2e06de8
471+
def _nullpager(stream: t.TextIO, color: t.Optional[bool]=None):
472+
=======
473+
def _nullpager(stream: t.TextIO, color: t.Optional[bool] = None):
474+
>>>>>>> refs/remotes/origin/filelike-pager
463475
"""Simply print unformatted text. This is the ultimate fallback."""
464476
encoding = get_best_encoding(stream)
465477
yield stream, encoding, color

0 commit comments

Comments
 (0)