Skip to content

Commit f32b28a

Browse files
bugfix huggingface-cli command execution in python3.8 (#2620)
* bugfix generic type in python 3.8 * run style --------- Co-authored-by: Celina Hanouti <[email protected]>
1 parent 126750f commit f32b28a

File tree

1 file changed

+2
-2
lines changed
  • src/huggingface_hub/commands

1 file changed

+2
-2
lines changed

src/huggingface_hub/commands/user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
import subprocess
3838
from argparse import _SubParsersAction
39-
from typing import Optional
39+
from typing import List, Optional
4040

4141
from requests.exceptions import HTTPError
4242

@@ -200,7 +200,7 @@ def _select_token_name(self) -> Optional[str]:
200200
except ValueError:
201201
print("Invalid input. Please enter a number or 'q' to quit.")
202202

203-
def _select_token_name_tui(self, token_names: list[str]) -> Optional[str]:
203+
def _select_token_name_tui(self, token_names: List[str]) -> Optional[str]:
204204
choices = [Choice(token_name, name=token_name) for token_name in token_names]
205205
try:
206206
return inquirer.select(

0 commit comments

Comments
 (0)