Skip to content

Commit 7d7c925

Browse files
committed
chore(python): headers type
1 parent cd620b8 commit 7d7c925

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/python/config.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from os import environ
2-
from typing import Optional
2+
from typing import Dict, Optional
33

44
from algoliasearch.http.hosts import (
55
CallType,
@@ -29,7 +29,7 @@ class {{#lambda.pascalcase}}{{client}}{{/lambda.pascalcase}}Config(BaseConfig):
2929
if api_key is None or not api_key:
3030
raise ValueError("`api_key` is missing.")
3131

32-
self.headers = {
32+
self.headers: Dict[string, string] = {
3333
"x-algolia-application-id": app_id,
3434
"x-algolia-api-key": api_key,
3535
"user-agent": self._user_agent.get(),

0 commit comments

Comments
 (0)