massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / atomicwrites / __init__.pyi
1 from typing import AnyStr, Callable, ContextManager, IO, Optional, Text, Type\r
2 \r
3 def replace_atomic(src: AnyStr, dst: AnyStr) -> None: ...\r
4 def move_atomic(src: AnyStr, dst: AnyStr) -> None: ...\r
5 class AtomicWriter(object):\r
6     def __init__(self, path: AnyStr, mode: Text = ..., overwrite: bool = ...) -> None: ...\r
7     def open(self) -> ContextManager[IO]: ...\r
8     def _open(self, get_fileobject: Callable) -> ContextManager[IO]: ...\r
9     def get_fileobject(self, dir: Optional[AnyStr] = ..., **kwargs) -> IO: ...\r
10     def sync(self, f: IO) -> None: ...\r
11     def commit(self, f: IO) -> None: ...\r
12     def rollback(self, f: IO) -> None: ...\r
13 def atomic_write(path: AnyStr, writer_cls: Type[AtomicWriter] = ..., **cls_kwargs: object) -> ContextManager[IO]: ...\r