Skip to content

Commit 488fd6b

Browse files
committed
use Protocol
1 parent a6386e8 commit 488fd6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/contextlib.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class suppress(AbstractContextManager[None, bool]):
144144
# This is trying to describe what is needed for (most?) uses
145145
# of `redirect_stdout` and `redirect_stderr`.
146146
# https://github.com/python/typeshed/issues/14903
147-
class _SupportsRedirect:
147+
class _SupportsRedirect(Protocol):
148148
def write(self, s: str, /) -> int: ...
149149
def flush(self) -> None: ...
150150

0 commit comments

Comments
 (0)