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: ...