Skip to content

Commit f4243c4

Browse files
committed
Fix typing so that tests running on python 3.8 pass
1 parent a008ceb commit f4243c4

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/flareio/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
_API_DOMAIN_DEFAULT: str = "api.flare.io"
24-
_ALLOWED_API_DOMAINS: frozenset[str] = frozenset(
24+
_ALLOWED_API_DOMAINS: t.FrozenSet[str] = frozenset(
2525
{
2626
_API_DOMAIN_DEFAULT,
2727
"api.eu.flare.io",

src/flareio/auth.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
from requests import PreparedRequest
22
from requests.auth import AuthBase
33

4+
import typing as t
5+
46

57
class _StaticHeadersAuth(AuthBase):
68
def __init__(
79
self,
810
*,
9-
headers: dict[str, str],
11+
headers: t.Dict[str, str],
1012
) -> None:
11-
self._headers: dict[str, str] = headers
13+
self._headers: t.Dict[str, str] = headers
1214

1315
def __call__(
1416
self,

0 commit comments

Comments
 (0)