Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix huggingface-cli command execution in python3.8 #2620

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/huggingface_hub/commands/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

import subprocess
from argparse import _SubParsersAction
from typing import Optional
from typing import List, Optional

from requests.exceptions import HTTPError

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

def _select_token_name_tui(self, token_names: list[str]) -> Optional[str]:
def _select_token_name_tui(self, token_names: List[str]) -> Optional[str]:
choices = [Choice(token_name, name=token_name) for token_name in token_names]
try:
return inquirer.select(
Expand Down
Loading