Skip to content

Commit 82326e4

Browse files
committed
fix: mypy types
1 parent dbbf76e commit 82326e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

resend/http_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from abc import ABC, abstractmethod
2-
from typing import Mapping, Optional, Tuple, Union, List
2+
from typing import Mapping, Optional, Tuple, Union, List, Dict
33

44

55
class HTTPClient(ABC):
@@ -9,6 +9,6 @@ def request(
99
method: str,
1010
url: str,
1111
headers: Mapping[str, str],
12-
json: Optional[Union[dict[str, object], List[object]]] = None,
12+
json: Optional[Union[Dict[str, object], List[object]]] = None,
1313
) -> Tuple[bytes, int, Mapping[str, str]]:
1414
pass

resend/http_client_requests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Mapping, Optional, Tuple, Union, List
1+
from typing import Mapping, Optional, Tuple, Union, List, Dict
22

33
import requests
44

@@ -14,7 +14,7 @@ def request(
1414
method: str,
1515
url: str,
1616
headers: Mapping[str, str],
17-
json: Optional[Union[dict[str, object], List[object]]] = None,
17+
json: Optional[Union[Dict[str, object], List[object]]] = None,
1818
) -> Tuple[bytes, int, Mapping[str, str]]:
1919
try:
2020
resp = requests.request(

0 commit comments

Comments
 (0)