Skip to content

Commit 317f4bd

Browse files
authored
Merge pull request #117 from gustavomfb/116-Fix_header_annotation
Fixes #116
2 parents a5d56f3 + 4150838 commit 317f4bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_requests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def cast(_t, value):
5050
else:
5151
from ssl import SSLContext
5252
from types import ModuleType, TracebackType
53-
from typing import Any, Dict, List, Optional, Tuple, Type, Union, cast
53+
from typing import Any, Dict, Optional, Tuple, Type, Union, cast
5454

5555
try:
5656
from typing import Protocol
@@ -575,7 +575,7 @@ def _send_request(
575575
host: str,
576576
method: str,
577577
path: str,
578-
headers: List[Dict[str, str]],
578+
headers: Dict[str, str],
579579
data: Any,
580580
json: Any,
581581
):
@@ -623,7 +623,7 @@ def request(
623623
url: str,
624624
data: Optional[Any] = None,
625625
json: Optional[Any] = None,
626-
headers: Optional[List[Dict[str, str]]] = None,
626+
headers: Optional[Dict[str, str]] = None,
627627
stream: bool = False,
628628
timeout: float = 60,
629629
) -> Response:
@@ -793,7 +793,7 @@ def request(
793793
url: str,
794794
data: Optional[Any] = None,
795795
json: Optional[Any] = None,
796-
headers: Optional[List[Dict[str, str]]] = None,
796+
headers: Optional[Dict[str, str]] = None,
797797
stream: bool = False,
798798
timeout: float = 1,
799799
) -> None:

0 commit comments

Comments
 (0)