We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 955c612 commit e7a3b33Copy full SHA for e7a3b33
jwt/jwks_client.py
@@ -1,7 +1,7 @@
1
import json
2
import urllib.request
3
from functools import lru_cache
4
-from typing import Any, List, Optional
+from typing import Any, Dict, List, Optional
5
from urllib.error import URLError
6
7
from .api_jwk import PyJWK, PyJWKSet
@@ -18,8 +18,10 @@ def __init__(
18
max_cached_keys: int = 16,
19
cache_jwk_set: bool = True,
20
lifespan: int = 300,
21
- headers: dict = {},
+ headers: Optional[Dict[str, Any]] = None,
22
):
23
+ if headers is None:
24
+ headers = {}
25
self.uri = uri
26
self.jwk_set_cache: Optional[JWKSetCache] = None
27
self.headers = headers
0 commit comments