API refactor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-07 16:25:52 +09:00
parent 76d0d86211
commit 91c7e04474
1171 changed files with 81940 additions and 44117 deletions

View File

@@ -10,7 +10,6 @@ from io import (
FileIO,
TextIOBase,
)
from types import coroutine
from ..base import AiofilesContextManager
from .binary import (
@@ -63,8 +62,7 @@ def open(
)
@coroutine
def _open(
async def _open(
file,
mode="r",
buffering=-1,
@@ -91,7 +89,7 @@ def _open(
closefd=closefd,
opener=opener,
)
f = yield from loop.run_in_executor(executor, cb)
f = await loop.run_in_executor(executor, cb)
return wrap(f, loop=loop, executor=executor)