massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / aiofiles / aiofiles / threadpool / text.pyi
1 from _typeshed import StrOrBytesPath
2 from typing import BinaryIO, Iterable, Tuple
3
4 from ..base import AsyncBase
5
6 class AsyncTextIOWrapper(AsyncBase[str]):
7     async def close(self) -> None: ...
8     async def flush(self) -> None: ...
9     async def isatty(self) -> bool: ...
10     async def read(self, __size: int | None = ...) -> str: ...
11     async def readline(self, __size: int = ...) -> str: ...
12     async def readlines(self, __hint: int = ...) -> list[str]: ...
13     async def seek(self, __offset: int, __whence: int = ...) -> int: ...
14     async def seekable(self) -> bool: ...
15     async def tell(self) -> int: ...
16     async def truncate(self, __size: int | None = ...) -> int: ...
17     async def writable(self) -> bool: ...
18     async def write(self, __b: str) -> int: ...
19     async def writelines(self, __lines: Iterable[str]) -> None: ...
20     def detach(self) -> BinaryIO: ...
21     def fileno(self) -> int: ...
22     def readable(self) -> bool: ...
23     @property
24     def buffer(self) -> BinaryIO: ...
25     @property
26     def closed(self) -> bool: ...
27     @property
28     def encoding(self) -> str: ...
29     @property
30     def errors(self) -> str | None: ...
31     @property
32     def line_buffering(self) -> bool: ...
33     @property
34     def newlines(self) -> str | Tuple[str, ...] | None: ...
35     @property
36     def name(self) -> StrOrBytesPath | int: ...
37     @property
38     def mode(self) -> str: ...