[aiofiles] Update to 25.1.* (#14860)

This commit is contained in:
Semyon Moroz
2025-10-10 14:38:43 +04:00
committed by GitHub
parent 0b6151340b
commit 33414287a7
4 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
version = "24.1.*"
version = "25.1.*"
upstream_repository = "https://github.com/Tinche/aiofiles"
[tool.stubtest]
+2
View File
@@ -9,6 +9,8 @@ from typing_extensions import Self
_T = TypeVar("_T")
_V_co = TypeVar("_V_co", covariant=True)
def wrap(func: Callable[..., _T]) -> Callable[..., Awaitable[_T]]: ...
class AsyncBase(Generic[_T]):
def __init__(self, file: TextIO | BinaryIO | None, loop: AbstractEventLoop | None, executor: Executor | None) -> None: ...
def __aiter__(self) -> Self: ...
+1 -1
View File
@@ -7,7 +7,7 @@ from os import _ScandirIterator, stat_result
from typing import AnyStr, overload
from aiofiles import ospath
from aiofiles.ospath import wrap as wrap
from aiofiles.base import wrap as wrap
__all__ = [
"path",
+15 -4
View File
@@ -1,13 +1,24 @@
from _typeshed import FileDescriptorOrPath
from asyncio.events import AbstractEventLoop
from collections.abc import Awaitable, Callable
from concurrent.futures import Executor
from os import PathLike
from typing import AnyStr, TypeVar
from typing import AnyStr
_R = TypeVar("_R")
__all__ = [
"abspath",
"getatime",
"getctime",
"getmtime",
"getsize",
"exists",
"isdir",
"isfile",
"islink",
"ismount",
"samefile",
"sameopenfile",
]
def wrap(func: Callable[..., _R]) -> Callable[..., Awaitable[_R]]: ...
async def exists(
path: FileDescriptorOrPath, *, loop: AbstractEventLoop | None = ..., executor: Executor | None = ...
) -> bool: ...