From 86e2b8518ec67ca745a6e01ddc36bfa6296e82ab Mon Sep 17 00:00:00 2001 From: qorex Date: Wed, 8 Apr 2026 16:55:13 +0500 Subject: [PATCH] [aiofiles] Add aiofiles.threadpool.wrap (#15626) --- stubs/aiofiles/aiofiles/threadpool/__init__.pyi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stubs/aiofiles/aiofiles/threadpool/__init__.pyi b/stubs/aiofiles/aiofiles/threadpool/__init__.pyi index 71d2f4702..51cb1d2fd 100644 --- a/stubs/aiofiles/aiofiles/threadpool/__init__.pyi +++ b/stubs/aiofiles/aiofiles/threadpool/__init__.pyi @@ -9,7 +9,8 @@ from _typeshed import ( from asyncio import AbstractEventLoop from collections.abc import Callable from concurrent.futures import Executor -from typing import Literal, overload +from functools import _SingleDispatchCallable +from typing import Any, Literal, overload from typing_extensions import TypeAlias from ..base import AiofilesContextManager @@ -98,6 +99,8 @@ def open( executor: Executor | None = None, ) -> AiofilesContextManager[_UnknownAsyncBinaryIO]: ... +wrap: _SingleDispatchCallable[Any] + stdin: AsyncTextIndirectIOWrapper stdout: AsyncTextIndirectIOWrapper stderr: AsyncTextIndirectIOWrapper