From ffc19a82d6a70aca8f655732197f7c12ccc7c0ea Mon Sep 17 00:00:00 2001 From: Xi Bai Date: Fri, 27 Sep 2024 12:57:58 +0100 Subject: [PATCH] fix linting for py38 --- app/management/model_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/management/model_manager.py b/app/management/model_manager.py index cd12d39..d69c181 100644 --- a/app/management/model_manager.py +++ b/app/management/model_manager.py @@ -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)