Skip to content

Commit 8eb8a36

Browse files
julien-cLysandreJik
authored andcommitted
Fix CI? 😇
1 parent e230e68 commit 8eb8a36

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/huggingface_hub/hf_api.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,17 @@
1616

1717
import os
1818
import re
19+
import sys
1920
import warnings
2021
from io import BufferedIOBase, RawIOBase
2122
from os.path import expanduser
22-
from typing import BinaryIO, Dict, Iterable, List, Literal, Optional, Tuple, Union
23+
from typing import BinaryIO, Dict, Iterable, List, Optional, Tuple, Union
24+
25+
26+
if sys.version_info >= (3, 8):
27+
from typing import Literal
28+
else:
29+
from typing_extensions import Literal
2330

2431
import requests
2532
from requests.exceptions import HTTPError

0 commit comments

Comments
 (0)