Skip to content

Commit

Permalink
bugfix generic type in python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
PineApple777 committed Oct 21, 2024
1 parent 07896ee commit 4550842
Showing 1 changed file with 2 additions and 2 deletions.
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 Optional, List

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

0 comments on commit 4550842

Please sign in to comment.