massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / atomicwrites / __init__.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2and3/atomicwrites/__init__.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2and3/atomicwrites/__init__.pyi
new file mode 100644 (file)
index 0000000..e763ba6
--- /dev/null
@@ -0,0 +1,13 @@
+from typing import AnyStr, Callable, ContextManager, IO, Optional, Text, Type\r
+\r
+def replace_atomic(src: AnyStr, dst: AnyStr) -> None: ...\r
+def move_atomic(src: AnyStr, dst: AnyStr) -> None: ...\r
+class AtomicWriter(object):\r
+    def __init__(self, path: AnyStr, mode: Text = ..., overwrite: bool = ...) -> None: ...\r
+    def open(self) -> ContextManager[IO]: ...\r
+    def _open(self, get_fileobject: Callable) -> ContextManager[IO]: ...\r
+    def get_fileobject(self, dir: Optional[AnyStr] = ..., **kwargs) -> IO: ...\r
+    def sync(self, f: IO) -> None: ...\r
+    def commit(self, f: IO) -> None: ...\r
+    def rollback(self, f: IO) -> None: ...\r
+def atomic_write(path: AnyStr, writer_cls: Type[AtomicWriter] = ..., **cls_kwargs: object) -> ContextManager[IO]: ...\r