Skip to content
Myr

platform-dependent `testing.CaptureMode` type alias (#3452)

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

authored by Rowlando13 · committed by GitHub · parents e02a981, 88b8e31 · Browse files · 1 file+4 added−1 removed
This commit

State

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

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:src/click/testing.py+4 added-1 removed
20 unmodified lines
21 from _typeshed import ReadableBuffer2223 from .core import Command2425if sys.platform == "win32":26 CaptureMode: t.TypeAlias = t.Literal["sys"] # pyright: ignore[reportRedeclaration]27else:25CaptureMode: t.TypeAlias = t.Literal["sys", "fd"]28 CaptureMode: t.TypeAlias = t.Literal["sys", "fd"] # pyright: ignore[reportRedeclaration]29ExceptionInfo: t.TypeAlias = tuple[type[BaseException], BaseException, TracebackType]303132class EchoingStdin:
740 unmodified lines