Skip to content

Commit 3e1c45b

Browse files
committed
fix: typing
1 parent 010ab3c commit 3e1c45b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

workflowai/core/client/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ def __init__(self, endpoint: str, api_key: str, source_headers: Optional[dict[st
2222
raise ValueError("Missing API URL or key")
2323

2424
def _client(self) -> httpx.AsyncClient:
25+
source_headers = self.source_headers or {}
2526
client = httpx.AsyncClient(
2627
base_url=self.endpoint,
2728
headers={
2829
"Authorization": f"Bearer {self.api_key}",
29-
**(self.source_headers or {}),
30+
**source_headers,
3031
},
3132
timeout=120.0,
3233
)

0 commit comments

Comments
 (0)