Skip to content

Commit 25b50e3

Browse files
Add type hint to AIOHttpConnection loop parameter
Co-authored-by: Seth Michael Larson <seth.larson@elastic.co>
1 parent 8d0773a commit 25b50e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elasticsearch/_async/http_aiohttp.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18+
from asyncio import AbstractEventLoop
1819
from typing import Any, Collection, Mapping, MutableMapping, Optional, Tuple, Union
1920

2021
from ..connection import Connection
@@ -57,6 +58,6 @@ class AIOHttpConnection(AsyncConnection):
5758
api_key: Optional[Any] = ...,
5859
opaque_id: Optional[str] = ...,
5960
meta_header: bool = ...,
60-
loop: Any = ...,
61+
loop: Optional[AbstractEventLoop] = ...,
6162
**kwargs: Any,
6263
) -> None: ...

0 commit comments

Comments
 (0)