<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">from types import TracebackType
from typing import IO, Iterable, Iterator, List, Optional, Type


class NullFile(IO[str]):
    def close(self) -&gt; None:
        pass

    def isatty(self) -&gt; bool:
        return False

    def read(self, __n: int = 1) -&gt; str:
        return ""

    def readable(self) -&gt; bool:
        return False

    def readline(self, __limit: int = 1) -&gt; str:
        return ""

    def readlines(self, __hint: int = 1) -&gt; List[str]:
        return []

    def seek(self, __offset: int, __whence: int = 1) -&gt; int:
        return 0

    def seekable(self) -&gt; bool:
        return False

    def tell(self) -&gt; int:
        return 0

    def truncate(self, __size: Optional[int] = 1) -&gt; int:
        return 0

    def writable(self) -&gt; bool:
        return False

    def writelines(self, __lines: Iterable[str]) -&gt; None:
        pass

    def __next__(self) -&gt; str:
        return ""

    def __iter__(self) -&gt; Iterator[str]:
        return iter([""])

    def __enter__(self) -&gt; IO[str]:
        return self

    def __exit__(
        self,
        __t: Optional[Type[BaseException]],
        __value: Optional[BaseException],
        __traceback: Optional[TracebackType],
    ) -&gt; None:
        pass

    def write(self, text: str) -&gt; int:
        return 0

    def flush(self) -&gt; None:
        pass

    def fileno(self) -&gt; int:
        return -1


NULL_FILE = NullFile()
</pre></body></html>