from _typeshed import Incomplete

class StreamRedirector:
    saved_stream: Incomplete
    def __init__(self, stream) -> None: ...
    def close(self) -> None: ...
    def stream(self): ...

class InputStreamRedirector(StreamRedirector):
    def readline(self): ...
