mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 14:55:50 +08:00
Fix AiofilesContextManagerTempDir type argument (#14349)
This commit is contained in:
1 parent
ef966a1251
commit
1730d1c16b
1 file changed
+2
-3
@@ -15,7 +15,6 @@ from typing import AnyStr, Literal, overload
|
||||
from ..base import AiofilesContextManager
|
||||
from ..threadpool.binary import AsyncBufferedIOBase, AsyncBufferedReader, AsyncFileIO
|
||||
from ..threadpool.text import AsyncTextIOWrapper
|
||||
from .temptypes import AsyncTemporaryDirectory
|
||||
|
||||
# Text mode: always returns AsyncTextIOWrapper
|
||||
@overload
|
||||
@@ -318,7 +317,7 @@ def TemporaryDirectory(
|
||||
executor=None,
|
||||
) -> AiofilesContextManagerTempDir: ...
|
||||
|
||||
class AiofilesContextManagerTempDir(AiofilesContextManager[AsyncTemporaryDirectory]):
|
||||
async def __aenter__(self) -> str: ... # type: ignore[override]
|
||||
class AiofilesContextManagerTempDir(AiofilesContextManager[str]):
|
||||
async def __aenter__(self) -> str: ...
|
||||
|
||||
__all__ = ["NamedTemporaryFile", "TemporaryFile", "SpooledTemporaryFile", "TemporaryDirectory"]
|
||||
Reference in new issue
Block a user