From 3d87311595351bdb3b95e1a35fd1aa1def6db67a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Quioc?= Date: Tue, 25 Mar 2025 13:02:33 +0100 Subject: [PATCH] [aiofiles] Fix the file argument type in AsyncBase (#13717) --- stubs/aiofiles/aiofiles/base.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/aiofiles/aiofiles/base.pyi b/stubs/aiofiles/aiofiles/base.pyi index ea79abf48..1de0bbbfd 100644 --- a/stubs/aiofiles/aiofiles/base.pyi +++ b/stubs/aiofiles/aiofiles/base.pyi @@ -8,7 +8,7 @@ _T = TypeVar("_T") _V_co = TypeVar("_V_co", covariant=True) class AsyncBase(Generic[_T]): - def __init__(self, file: str, loop: Any, executor: Any) -> None: ... + def __init__(self, file: TextIO | BinaryIO | None, loop: Any, executor: Any) -> None: ... def __aiter__(self) -> Self: ... async def __anext__(self) -> _T: ...