Skip to content

Commit 3341428

Browse files
authored
[aiofiles] Update to 25.1.* (#14860)
1 parent 0b61513 commit 3341428

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

stubs/aiofiles/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "24.1.*"
1+
version = "25.1.*"
22
upstream_repository = "https://github.com/Tinche/aiofiles"
33

44
[tool.stubtest]

stubs/aiofiles/aiofiles/base.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ from typing_extensions import Self
99
_T = TypeVar("_T")
1010
_V_co = TypeVar("_V_co", covariant=True)
1111

12+
def wrap(func: Callable[..., _T]) -> Callable[..., Awaitable[_T]]: ...
13+
1214
class AsyncBase(Generic[_T]):
1315
def __init__(self, file: TextIO | BinaryIO | None, loop: AbstractEventLoop | None, executor: Executor | None) -> None: ...
1416
def __aiter__(self) -> Self: ...

stubs/aiofiles/aiofiles/os.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ from os import _ScandirIterator, stat_result
77
from typing import AnyStr, overload
88

99
from aiofiles import ospath
10-
from aiofiles.ospath import wrap as wrap
10+
from aiofiles.base import wrap as wrap
1111

1212
__all__ = [
1313
"path",

stubs/aiofiles/aiofiles/ospath.pyi

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
from _typeshed import FileDescriptorOrPath
22
from asyncio.events import AbstractEventLoop
3-
from collections.abc import Awaitable, Callable
43
from concurrent.futures import Executor
54
from os import PathLike
6-
from typing import AnyStr, TypeVar
5+
from typing import AnyStr
76

8-
_R = TypeVar("_R")
7+
__all__ = [
8+
"abspath",
9+
"getatime",
10+
"getctime",
11+
"getmtime",
12+
"getsize",
13+
"exists",
14+
"isdir",
15+
"isfile",
16+
"islink",
17+
"ismount",
18+
"samefile",
19+
"sameopenfile",
20+
]
921

10-
def wrap(func: Callable[..., _R]) -> Callable[..., Awaitable[_R]]: ...
1122
async def exists(
1223
path: FileDescriptorOrPath, *, loop: AbstractEventLoop | None = ..., executor: Executor | None = ...
1324
) -> bool: ...

0 commit comments

Comments
 (0)