Skip to content

Commit

Permalink
fix linting for py38
Browse files Browse the repository at this point in the history
  • Loading branch information
baixiac committed Sep 27, 2024
1 parent e6f9e33 commit ffc19a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/management/model_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def _get_pip_requirements() -> str:
return os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "requirements.txt"))

@staticmethod
def _get_pip_requirements_from_file() -> Union[list[str], str]:
def _get_pip_requirements_from_file() -> Union[List[str], str]:
if os.path.exists(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "pyproject.toml"))):
with open(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "pyproject.toml")), "r") as file:
pyproject = toml.load(file)
Expand Down

0 comments on commit ffc19a8

Please sign in to comment.