massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / aiofiles / aiofiles / os.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/aiofiles/aiofiles/os.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/aiofiles/aiofiles/os.pyi
new file mode 100644 (file)
index 0000000..b48884c
--- /dev/null
@@ -0,0 +1,28 @@
+import sys
+from _typeshed import StrOrBytesPath
+from os import stat_result
+from typing import Sequence, Union, overload
+
+_FdOrAnyPath = Union[int, StrOrBytesPath]
+
+async def stat(path: _FdOrAnyPath, *, dir_fd: int | None = ..., follow_symlinks: bool = ...) -> stat_result: ...
+async def rename(
+    src: StrOrBytesPath, dst: StrOrBytesPath, *, src_dir_fd: int | None = ..., dst_dir_fd: int | None = ...
+) -> None: ...
+async def remove(path: StrOrBytesPath, *, dir_fd: int | None = ...) -> None: ...
+async def mkdir(path: StrOrBytesPath, mode: int = ..., *, dir_fd: int | None = ...) -> None: ...
+async def rmdir(path: StrOrBytesPath, *, dir_fd: int | None = ...) -> None: ...
+
+if sys.platform != "win32":
+    @overload
+    async def sendfile(__out_fd: int, __in_fd: int, offset: int | None, count: int) -> int: ...
+    @overload
+    async def sendfile(
+        __out_fd: int,
+        __in_fd: int,
+        offset: int,
+        count: int,
+        headers: Sequence[bytes] = ...,
+        trailers: Sequence[bytes] = ...,
+        flags: int = ...,
+    ) -> int: ...