We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
None
1 parent 293bdcd commit 9408c55Copy full SHA for 9408c55
stdlib/contextlib.pyi
@@ -147,7 +147,7 @@ class _SupportsRedirect(Protocol):
147
def write(self, s: str, /) -> int: ...
148
def flush(self) -> None: ...
149
150
-_SupportsRedirectT = TypeVar("_SupportsRedirectT", bound=_SupportsRedirect)
+_SupportsRedirectT = TypeVar("_SupportsRedirectT", bound=_SupportsRedirect | None)
151
152
class _RedirectStream(AbstractContextManager[_SupportsRedirectT, None]):
153
def __init__(self, new_target: _SupportsRedirectT) -> None: ...
0 commit comments