Skip to content

Commit

Permalink
Ignore erroneous typing
Browse files Browse the repository at this point in the history
  • Loading branch information
JordonPhillips committed Sep 5, 2024
1 parent 6b4736d commit 19289da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python-packages/smithy-http/smithy_http/aio/aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,13 @@ async def send(
if not isinstance(body, AsyncBytesReader):
body = AsyncBytesReader(body)

# The typing on `params` is incorrect, it'll happily accept a mapping whose
# values are lists (or tuples) and produce expected values.
# See: https://github.com/aio-libs/aiohttp/issues/8563
async with self._session.request(
method=request.method,
url=self._serialize_uri_without_query(request.destination),
params=parse_qs(request.destination.query),
params=parse_qs(request.destination.query), # type: ignore
headers=headers_list,
data=body,
) as resp:
Expand Down

0 comments on commit 19289da

Please sign in to comment.