From 9b4198a4c667e41ca25b657c8dc3305a978bd446 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 24 Feb 2024 22:10:37 +0200 Subject: [PATCH] Fix type error in download_thumbnail --- mautrix/client/api/modules/media_repository.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mautrix/client/api/modules/media_repository.py b/mautrix/client/api/modules/media_repository.py index fe52252a..779ec814 100644 --- a/mautrix/client/api/modules/media_repository.py +++ b/mautrix/client/api/modules/media_repository.py @@ -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, ): """ @@ -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)