Add __all__ (#13704)

This commit is contained in:
Semyon Moroz
2025-03-25 14:09:32 +01:00
committed by GitHub
parent 4a750cef35
commit 9234985c3d
54 changed files with 311 additions and 63 deletions
@@ -1,8 +1,3 @@
# TODO: missing from stub
aiofiles.__all__
aiofiles.tempfile.__all__
aiofiles.threadpool.__all__
# These all delegate using *args,**kwargs, but stubs use signature of
# method they are being delegated to.
aiofiles.threadpool.binary.AsyncBufferedIOBase.close
+2
View File
@@ -8,3 +8,5 @@ from .threadpool import (
stdout as stdout,
stdout_bytes as stdout_bytes,
)
__all__ = ["open", "tempfile", "stdin", "stdout", "stderr", "stdin_bytes", "stdout_bytes", "stderr_bytes"]
@@ -321,3 +321,5 @@ def TemporaryDirectory(
class AiofilesContextManagerTempDir(AiofilesContextManager[AsyncTemporaryDirectory]):
async def __aenter__(self) -> str: ... # type: ignore[override]
__all__ = ["NamedTemporaryFile", "TemporaryFile", "SpooledTemporaryFile", "TemporaryDirectory"]
@@ -104,3 +104,5 @@ stderr: AsyncTextIndirectIOWrapper
stdin_bytes: AsyncIndirectBufferedIOBase
stdout_bytes: AsyncIndirectBufferedIOBase
stderr_bytes: AsyncIndirectBufferedIOBase
__all__ = ("open", "stdin", "stdout", "stderr", "stdin_bytes", "stdout_bytes", "stderr_bytes")