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 7b9920a commit a2c8558Copy full SHA for a2c8558
src/cryptojwt/utils.py
@@ -8,7 +8,7 @@
8
import warnings
9
from binascii import unhexlify
10
from email.message import EmailMessage
11
-from typing import List
+from typing import List, Set, Union
12
13
from cryptojwt.exception import BadSyntax
14
@@ -262,7 +262,7 @@ def httpc_params_loader(httpc_params):
262
return httpc_params
263
264
265
-def check_content_type(content_type: str, mime_type: str | list[str] | set[str]):
+def check_content_type(content_type: str, mime_type: Union[str, List[str], Set[str]]):
266
"""Return True if the content type contains the MIME type"""
267
msg = EmailMessage()
268
msg["content-type"] = content_type
0 commit comments