From f35766cf8688db5a092e11ef86d6d6f8044dc110 Mon Sep 17 00:00:00 2001 From: Felix Lu <58391009+lumpinif@users.noreply.github.com> Date: Thu, 26 Nov 2026 20:41:07 -0800 Subject: [PATCH] fix: annotate the headers dict so the type check passes --- src/fishaudio/core/client_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fishaudio/core/client_wrapper.py b/src/fishaudio/core/client_wrapper.py index 79f1423..c95784e 100644 --- a/src/fishaudio/core/client_wrapper.py +++ b/src/fishaudio/core/client_wrapper.py @@ -163,7 +163,7 @@ def get_headers( casing), or else one set on a user-supplied httpx client, is appended to the SDK's own. """ - headers = {"Authorization": f"Bearer {self.api_key}"} + headers: dict[str, str] = {"Authorization": f"Bearer {self.api_key}"} # Read from the client on every call, so a User-Agent changed on a # supplied httpx client after construction is used. The SDK's own # client carries USER_AGENT, which user_agent() does not double.