diff --git a/stdlib/3/fileinput.pyi b/stdlib/3/fileinput.pyi index 8e799c29e..2d2cdd569 100644 --- a/stdlib/3/fileinput.pyi +++ b/stdlib/3/fileinput.pyi @@ -1,46 +1,49 @@ from typing import Iterable, BinaryIO -def input( - files = None, - inplace: bool = ..., - backup: str = ..., - bufsize: int = ..., - mode: str = ..., - openhook = None): ... -def close() -> None : ... -def nextfile() -> None : ... -def filename() -> str : ... -def lineno() -> int : ... -def isfirstline() -> bool : ... -def isstdin() -> bool : ... +def input( + files=None, + inplace: bool=..., + backup: str=..., + bufsize: int=..., + mode: str=..., + openhook=None + ): ... + + +def close() -> None: ... +def nextfile() -> None: ... +def filename() -> str: ... +def lineno() -> int: ... +def isfirstline() -> bool: ... +def isstdin() -> bool: ... class FileInput(Iterable): def __init__( self, - files = None, - inplace: bool = ..., - backup: str = ..., - bufsize: int = ..., - mode: str = ..., - openhook = None) -> None : ... + files=None, + inplace: bool=..., + backup: str=..., + bufsize: int=..., + mode: str=..., + openhook=None + ) -> None: ... + def __del__(self) -> None: ... + def close(self) -> None: ... + def __enter__(self): ... + def __exit__(self, type, value, traceback) -> None: ... + def __iter__(self): ... + def __next__(self) -> str: ... + def __getitem__(self, i) -> str: ... + def nextfile(self) -> None: ... + def readline(self) -> str: ... + def filename(self) -> str: ... + def lineno(self) -> int: ... + def filelineno(self) -> int: ... + def fileno(self) -> int: ... + def isfirstline(self) -> bool: ... + def isstdin(self) -> bool: ... - def __del__(self) -> None : ... - def close(self) -> None : ... - def __enter__(self) : ... - def __exit__(self, type, value, traceback) -> None : ... - def __iter__(self) : ... - def __next__(self) -> str : ... - def __getitem__(self, i) -> str : ... - def nextfile(self) -> None : ... - def readline(self) -> str : ... - def filename(self) -> str : ... - def lineno(self) -> int : ... - def filelineno(self) -> int : ... - def fileno(self) -> int : ... - def isfirstline(self) -> bool : ... - def isstdin(self) -> bool : ... - -def hook_compressed(filename: str, mode: str) -> BinaryIO : ... -def hook_encoded(encoding: str) -> BinaryIO : ... +def hook_compressed(filename: str, mode: str) -> BinaryIO: ... +def hook_encoded(encoding: str) -> BinaryIO: ...