mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Fix AiofilesContextManagerTempDir type argument (#14349)
This commit is contained in:
@@ -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