mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-14 20:11:07 +08:00
Add __all__ (#13704)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user