From b85d50e08a17e7ed98a5fdf10b2fb53c7ea5982a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 16:08:46 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- aiohttp/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiohttp/client.py b/aiohttp/client.py index 65fe4e7e93e..3b825d02f6f 100644 --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -346,7 +346,7 @@ def request( return _RequestContextManager(self._request(method, url, **kwargs)) def _build_url(self, str_or_url: StrOrURL, **kwargs: Any) -> URL: - url = URL(str_or_url, encoded=kwargs.get('encode_url')) + url = URL(str_or_url, encoded=kwargs.get("encode_url")) if self._base_url is None: return url else: @@ -385,7 +385,7 @@ async def _request( auto_decompress: Optional[bool] = None, max_line_size: Optional[int] = None, max_field_size: Optional[int] = None, - encode_url: Optional[bool] = False + encode_url: Optional[bool] = False, ) -> ClientResponse: # NOTE: timeout clamps existing connect and read timeouts. We cannot # set the default to None because we need to detect if the user wants