We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd00219 commit 83c7c7bCopy full SHA for 83c7c7b
src/fastapi_cli/discover.py
@@ -3,7 +3,7 @@
3
from dataclasses import dataclass
4
from logging import getLogger
5
from pathlib import Path
6
-from typing import List, Union
+from typing import List, Tuple, Union
7
8
from fastapi_cli.exceptions import FastAPICLIException
9
@@ -72,7 +72,7 @@ def get_module_data_from_path(path: Path) -> ModuleData:
72
73
def get_app_name(
74
*, mod_data: ModuleData, app_name: Union[str, None] = None
75
-) -> tuple[str, FastAPI]:
+) -> Tuple[str, FastAPI]:
76
try:
77
mod = importlib.import_module(mod_data.module_import_str)
78
except (ImportError, ValueError) as e:
0 commit comments