aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/aiofiles-stubs/os.pyi
diff options
context:
space:
mode:
authorS. Solomon Darnell2025-03-28 21:52:21 -0500
committerS. Solomon Darnell2025-03-28 21:52:21 -0500
commit4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch)
treeee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/aiofiles-stubs/os.pyi
parentcc961e04ba734dd72309fb548a2f97d67d578813 (diff)
downloadgn-ai-master.tar.gz
two version of R2R are hereHEADmaster
Diffstat (limited to '.venv/lib/python3.12/site-packages/aiofiles-stubs/os.pyi')
-rw-r--r--.venv/lib/python3.12/site-packages/aiofiles-stubs/os.pyi144
1 files changed, 144 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/aiofiles-stubs/os.pyi b/.venv/lib/python3.12/site-packages/aiofiles-stubs/os.pyi
new file mode 100644
index 00000000..5a3de3b5
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/aiofiles-stubs/os.pyi
@@ -0,0 +1,144 @@
+import sys
+from _typeshed import BytesPath, FileDescriptorOrPath, GenericPath, ReadableBuffer, StrOrBytesPath, StrPath
+from asyncio.events import AbstractEventLoop
+from collections.abc import Sequence
+from os import _ScandirIterator, stat_result
+from typing import Any, AnyStr, overload
+
+from aiofiles import ospath
+from aiofiles.ospath import wrap as wrap
+
+__all__ = [
+ "path",
+ "stat",
+ "rename",
+ "renames",
+ "replace",
+ "remove",
+ "unlink",
+ "mkdir",
+ "makedirs",
+ "rmdir",
+ "removedirs",
+ "link",
+ "symlink",
+ "readlink",
+ "listdir",
+ "scandir",
+ "access",
+ "wrap",
+ "getcwd",
+]
+
+if sys.platform != "win32":
+ __all__ += ["statvfs", "sendfile"]
+
+path = ospath
+
+async def stat(
+ path: FileDescriptorOrPath,
+ *,
+ dir_fd: int | None = None,
+ follow_symlinks: bool = True,
+ loop: AbstractEventLoop | None = ...,
+ executor: Any = ...,
+) -> stat_result: ...
+async def rename(
+ src: StrOrBytesPath,
+ dst: StrOrBytesPath,
+ *,
+ src_dir_fd: int | None = None,
+ dst_dir_fd: int | None = None,
+ loop: AbstractEventLoop | None = ...,
+ executor: Any = ...,
+) -> None: ...
+async def renames(
+ old: StrOrBytesPath, new: StrOrBytesPath, loop: AbstractEventLoop | None = ..., executor: Any = ...
+) -> None: ...
+async def replace(
+ src: StrOrBytesPath,
+ dst: StrOrBytesPath,
+ *,
+ src_dir_fd: int | None = None,
+ dst_dir_fd: int | None = None,
+ loop: AbstractEventLoop | None = ...,
+ executor: Any = ...,
+) -> None: ...
+async def remove(
+ path: StrOrBytesPath, *, dir_fd: int | None = None, loop: AbstractEventLoop | None = ..., executor: Any = ...
+) -> None: ...
+async def unlink(
+ path: StrOrBytesPath, *, dir_fd: int | None = ..., loop: AbstractEventLoop | None = ..., executor: Any = ...
+) -> None: ...
+async def mkdir(
+ path: StrOrBytesPath, mode: int = 511, *, dir_fd: int | None = None, loop: AbstractEventLoop | None = ..., executor: Any = ...
+) -> None: ...
+async def makedirs(
+ name: StrOrBytesPath, mode: int = 511, exist_ok: bool = False, *, loop: AbstractEventLoop | None = ..., executor: Any = ...
+) -> None: ...
+async def link(
+ src: StrOrBytesPath,
+ dst: StrOrBytesPath,
+ *,
+ src_dir_fd: int | None = ...,
+ dst_dir_fd: int | None = ...,
+ follow_symlinks: bool = ...,
+ loop: AbstractEventLoop | None = ...,
+ executor: Any = ...,
+) -> None: ...
+async def symlink(
+ src: StrOrBytesPath,
+ dst: StrOrBytesPath,
+ target_is_directory: bool = ...,
+ *,
+ dir_fd: int | None = ...,
+ loop: AbstractEventLoop | None = ...,
+ executor: Any = ...,
+) -> None: ...
+async def readlink(
+ path: AnyStr, *, dir_fd: int | None = ..., loop: AbstractEventLoop | None = ..., executor: Any = ...
+) -> AnyStr: ...
+async def rmdir(
+ path: StrOrBytesPath, *, dir_fd: int | None = None, loop: AbstractEventLoop | None = ..., executor: Any = ...
+) -> None: ...
+async def removedirs(name: StrOrBytesPath, *, loop: AbstractEventLoop | None = ..., executor: Any = ...) -> None: ...
+@overload
+async def scandir(path: None = None, *, loop: AbstractEventLoop | None = ..., executor: Any = ...) -> _ScandirIterator[str]: ...
+@overload
+async def scandir(path: int, *, loop: AbstractEventLoop | None = ..., executor: Any = ...) -> _ScandirIterator[str]: ...
+@overload
+async def scandir(
+ path: GenericPath[AnyStr], *, loop: AbstractEventLoop | None = ..., executor: Any = ...
+) -> _ScandirIterator[AnyStr]: ...
+@overload
+async def listdir(path: StrPath | None, *, loop: AbstractEventLoop | None = ..., executor: Any = ...) -> list[str]: ...
+@overload
+async def listdir(path: BytesPath, *, loop: AbstractEventLoop | None = ..., executor: Any = ...) -> list[bytes]: ...
+@overload
+async def listdir(path: int, *, loop: AbstractEventLoop | None = ..., executor: Any = ...) -> list[str]: ...
+async def access(
+ path: FileDescriptorOrPath, mode: int, *, dir_fd: int | None = None, effective_ids: bool = False, follow_symlinks: bool = True
+) -> bool: ...
+async def getcwd() -> str: ...
+
+if sys.platform != "win32":
+ from os import statvfs_result
+
+ @overload
+ async def sendfile(
+ out_fd: int, in_fd: int, offset: int | None, count: int, *, loop: AbstractEventLoop | None = ..., executor: Any = ...
+ ) -> int: ...
+ @overload
+ async def sendfile(
+ out_fd: int,
+ in_fd: int,
+ offset: int,
+ count: int,
+ headers: Sequence[ReadableBuffer] = ...,
+ trailers: Sequence[ReadableBuffer] = ...,
+ flags: int = ...,
+ *,
+ loop: AbstractEventLoop | None = ...,
+ executor: Any = ...,
+ ) -> int: ... # FreeBSD and Mac OS X only
+ async def statvfs(path: FileDescriptorOrPath) -> statvfs_result: ... # Unix only