Skip to content

Commit 355294e

Browse files
committed
fix incorrect type annotation for HttpClient.batch_requests()
1 parent 4e803a4 commit 355294e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_poet/requests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import asyncio
1212
import logging
1313
from contextvars import ContextVar
14-
from typing import Optional, List, Dict, ByteString, Any, Union, Callable, Iterable
14+
from typing import Optional, List, Dict, ByteString, Any, Union, Callable
1515

1616
import attr
1717

@@ -132,7 +132,7 @@ async def post(
132132
"""
133133
return await self.request(url=url, method="POST", headers=headers, body=body)
134134

135-
async def batch_requests(self, *requests: Iterable[Request]) -> List[ResponseData]:
135+
async def batch_requests(self, *requests: Request) -> List[ResponseData]:
136136
"""Similar to :meth:`~.HttpClient.request` but accepts a collection of
137137
:class:`~.Request` instances that would be batch executed.
138138
"""

0 commit comments

Comments
 (0)