Skip to content

Commit

Permalink
[fix] fixing typo in language sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Animenosekai committed Sep 24, 2023
1 parent 35a6c3b commit 13bc6f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion translatepy/cli/sdk/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def search(query: str, limit: int = 10):

def available():
"""Displays the available translators"""
return set(vector.id for vector in importer.IMPORTER_VECTORS)
return {vector.id for vector in importer.IMPORTER_VECTORS}


def prepare_argparse(parser: argparse.ArgumentParser):
Expand Down
2 changes: 1 addition & 1 deletion translatepy/cli/sdk/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def info(language: str):

def available():
"""Displays the available translators"""
return set(vector.id for vector in LANGUAGE_DATA["vectors"])
return {vector.id for vector in LANGUAGE_DATA["vectors"]}


def prepare_argparse(parser: argparse.ArgumentParser):
Expand Down

0 comments on commit 13bc6f6

Please sign in to comment.