Skip to content

Commit

Permalink
Fix type error in download_thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Feb 24, 2024
1 parent 3e22e61 commit 9b4198a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mautrix/client/api/modules/media_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ async def download_thumbnail(
width: int | None = None,
height: int | None = None,
resize_method: Literal["crop", "scale"] = None,
allow_remote: bool = True,
allow_remote: bool | None = None,
timeout_ms: int | None = None,
):
"""
Expand Down Expand Up @@ -232,7 +232,7 @@ async def download_thumbnail(
if resize_method is not None:
query_params["method"] = resize_method
if allow_remote is not None:
query_params["allow_remote"] = allow_remote
query_params["allow_remote"] = str(allow_remote).lower()
if timeout_ms is not None:
query_params["timeout_ms"] = timeout_ms
req_id = self.api.log_download_request(url, query_params)
Expand Down

0 comments on commit 9b4198a

Please sign in to comment.