mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
[aiofiles] Fix the file argument type in AsyncBase (#13717)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user