1 from typing import Any, AnyStr, Generic, Iterable, Tuple
3 from paramiko.util import ClosingContextManager
5 class BufferedFile(ClosingContextManager, Generic[AnyStr]):
15 FLAG_LINE_BUFFERED: int
16 FLAG_UNIVERSAL_NEWLINE: int
18 newlines: None | AnyStr | Tuple[AnyStr, ...]
19 def __init__(self) -> None: ...
20 def __del__(self) -> None: ...
21 def __iter__(self) -> BufferedFile[Any]: ...
22 def close(self) -> None: ...
23 def flush(self) -> None: ...
24 def __next__(self) -> AnyStr: ...
25 def readable(self) -> bool: ...
26 def writable(self) -> bool: ...
27 def seekable(self) -> bool: ...
28 def readinto(self, buff: bytearray) -> int: ...
29 def read(self, size: int | None = ...) -> bytes: ...
30 def readline(self, size: int | None = ...) -> AnyStr: ...
31 def readlines(self, sizehint: int | None = ...) -> list[AnyStr]: ...
32 def seek(self, offset: int, whence: int = ...) -> None: ...
33 def tell(self) -> int: ...
34 def write(self, data: AnyStr) -> None: ...
35 def writelines(self, sequence: Iterable[AnyStr]) -> None: ...
36 def xreadlines(self) -> BufferedFile[Any]: ...
38 def closed(self) -> bool: ...