Skip to content

Commit 9408c55

Browse files
committed
allow None
1 parent 293bdcd commit 9408c55

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
@@ -147,7 +147,7 @@ class _SupportsRedirect(Protocol):
147147
def write(self, s: str, /) -> int: ...
148148
def flush(self) -> None: ...
149149

150-
_SupportsRedirectT = TypeVar("_SupportsRedirectT", bound=_SupportsRedirect)
150+
_SupportsRedirectT = TypeVar("_SupportsRedirectT", bound=_SupportsRedirect | None)
151151

152152
class _RedirectStream(AbstractContextManager[_SupportsRedirectT, None]):
153153
def __init__(self, new_target: _SupportsRedirectT) -> None: ...

0 commit comments

Comments
 (0)