From eb06c532c30c450457e461552bad26b8798edf48 Mon Sep 17 00:00:00 2001 From: dblock Date: Mon, 9 Oct 2023 10:36:16 -0400 Subject: [PATCH] Added loop type for async client. Signed-off-by: dblock --- opensearchpy/_async/http_aiohttp.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opensearchpy/_async/http_aiohttp.pyi b/opensearchpy/_async/http_aiohttp.pyi index 4dea4317..223fdfff 100644 --- a/opensearchpy/_async/http_aiohttp.pyi +++ b/opensearchpy/_async/http_aiohttp.pyi @@ -24,6 +24,7 @@ # specific language governing permissions and limitations # under the License. +from asyncio import AbstractEventLoop from typing import Any, Collection, Mapping, Optional, Tuple, Union from ..connection import Connection @@ -65,7 +66,7 @@ class AIOHttpConnection(AsyncConnection): ssl_context: Optional[Any] = ..., http_compress: Optional[bool] = ..., opaque_id: Optional[str] = ..., - loop: Any = ..., + loop: Optional[AbstractEventLoop] = ..., trust_env: bool = ..., **kwargs: Any ) -> None: ...