Skip to content

Commit a2c8558

Browse files
committed
Fix typing for legacy Python
1 parent 7b9920a commit a2c8558

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cryptojwt/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import warnings
99
from binascii import unhexlify
1010
from email.message import EmailMessage
11-
from typing import List
11+
from typing import List, Set, Union
1212

1313
from cryptojwt.exception import BadSyntax
1414

@@ -262,7 +262,7 @@ def httpc_params_loader(httpc_params):
262262
return httpc_params
263263

264264

265-
def check_content_type(content_type: str, mime_type: str | list[str] | set[str]):
265+
def check_content_type(content_type: str, mime_type: Union[str, List[str], Set[str]]):
266266
"""Return True if the content type contains the MIME type"""
267267
msg = EmailMessage()
268268
msg["content-type"] = content_type

0 commit comments

Comments
 (0)