Skip to content

Commit 6e9bba9

Browse files
committed
fix: typing errors
1 parent 4b69ebc commit 6e9bba9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

aiob2/http.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,16 @@ def __init__(
178178
path: str,
179179
*,
180180
base: Optional[str] = None,
181-
query_parameters: Optional = None,
182181
**parameters: Any
183182
) -> None:
184183
self.method: Literal['GET', 'POST', 'PUT', 'DELETE'] = method
185184
self.path = path
186185
self.parameters = parameters
187-
self.query_parameters = query_parameters
188186
url = (base or self.BASE) + self.path
189187
if parameters:
190188
url = url.format_map({k: quote(v) if isinstance(v, str) else v for k, v in self.parameters.items()})
191-
self.url: URL = URL(url, encoded=True).with_query(query_parameters)
189+
190+
self.url: URL = URL(url, encoded=True)
192191

193192
def __repr__(self) -> str:
194193
return f'{self.method} {str(self.url)}'
@@ -415,7 +414,7 @@ async def request(
415414
if self._authorization_token is MISSING and route.path != '/b2_authorize_account':
416415
await self._find_authorization_token()
417416
headers['Authorization'] = self._authorization_token
418-
route = Route(route.method, route.path, base=self._api_url, query_parameters=route.query_parameters, **route.parameters)
417+
route = Route(route.method, route.path, base=self._api_url, **route.parameters)
419418

420419
for tries in range(5):
421420
if upload_info:

0 commit comments

Comments
 (0)