From 5c9e84ffabb816cc5e02034f8a53e816722e16a3 Mon Sep 17 00:00:00 2001 From: Trenton Holmes <797416+stumpylog@users.noreply.github.com> Date: Thu, 12 Oct 2023 10:31:31 -0700 Subject: [PATCH] Fixes the Python 3.8 support --- src/gotenberg_client/convert/chromium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gotenberg_client/convert/chromium.py b/src/gotenberg_client/convert/chromium.py index 5d42670..e5f1178 100644 --- a/src/gotenberg_client/convert/chromium.py +++ b/src/gotenberg_client/convert/chromium.py @@ -149,7 +149,7 @@ def user_agent(self, agent: str) -> "ChromiumBaseRoute": self._form_data.update({"userAgent": agent}) return self - def headers(self, headers: dict[str, str]) -> "ChromiumBaseRoute": + def headers(self, headers: Dict[str, str]) -> "ChromiumBaseRoute": json_str = json.dumps(headers) # TODO: Need to check this self._form_data.update({"extraHttpHeaders": json_str})