| 1 | import contextlib |
| 2 | import io |
| 3 | import pathlib |
| 4 | from mmap import mmap |
| 5 | from typing import Any, Container, List, Optional, Union |
| 6 | |
| 7 | def open( |
| 8 | name: Union[pathlib.Path, str], mode: Any = ..., volume: Any = ... |
| 9 | ) -> io.RawIOBase: ... |
| 10 | |
| 11 | class _FileInfo: |
| 12 | filename: Any = ... |
| 13 | size: Any = ... |
| 14 | def __init__(self, filename: Any, size: Any) -> None: ... |
| 15 | |
| 16 | class MultiVolume(io.RawIOBase, contextlib.AbstractContextManager): |
| 17 | def __init__( |
| 18 | self, |
| 19 | basename: Union[pathlib.Path, str], |
| 20 | mode: Optional[str] = ..., |
| 21 | *, |
| 22 | volume: Optional[int] = ..., |
| 23 | ext_digits: Optional[int] = ..., |
| 24 | hex: Optional[bool] = ..., |
| 25 | ext_start: Optional[int] = ... |
| 26 | ) -> None: ... |
| 27 | def read(self, size: int = ...) -> bytes: ... |
| 28 | def readall(self) -> bytes: ... |
| 29 | def readinto( |
| 30 | self, b: Union[bytearray, memoryview, Container[Any], mmap] |
| 31 | ) -> int: ... |
| 32 | def write( |
| 33 | self, b: Union[bytes, bytearray, memoryview, Container[Any], mmap] |
| 34 | ) -> None: ... |
| 35 | def close(self) -> None: ... |
| 36 | @property |
| 37 | def closed(self) -> bool: ... |
| 38 | def fileno(self) -> int: ... |
| 39 | def flush(self) -> None: ... |
| 40 | def isatty(self) -> bool: ... |
| 41 | def readable(self) -> bool: ... |
| 42 | def readline(self, size: Optional[int] = ...) -> bytes: ... |
| 43 | def readlines(self, hint: int = ...) -> List[bytes]: ... |
| 44 | def seek(self, offset: int, whence: Optional[int] = ...) -> int: ... |
| 45 | def seekable(self) -> bool: ... |
| 46 | def tell(self) -> int: ... |
| 47 | def truncate(self, size: Optional[int] = ...) -> int: ... |
| 48 | def writable(self) -> bool: ... |
| 49 | def writelines(self, lines: Any) -> None: ... |
| 50 | def __del__(self) -> None: ... |
| 51 | def __enter__(self): ... |
| 52 | def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None: ... |