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