|
3 | 3 | from dataclasses import dataclass
|
4 | 4 | from logging import getLogger
|
5 | 5 | from pathlib import Path
|
6 | | -from typing import Union |
| 6 | +from typing import Tuple, Union |
7 | 7 |
|
8 | 8 | from rich import print
|
9 | 9 | from rich.padding import Padding
|
@@ -100,7 +100,7 @@ def get_module_data_from_path(path: Path) -> ModuleData:
|
100 | 100 |
|
101 | 101 | def get_app_name_add_app(
|
102 | 102 | *, mod_data: ModuleData, app_name: Union[str, None] = None
|
103 | | -) -> tuple[str, FastAPI]: |
| 103 | +) -> Tuple[str, FastAPI]: |
104 | 104 | try:
|
105 | 105 | mod = importlib.import_module(mod_data.module_import_str)
|
106 | 106 | except (ImportError, ValueError) as e:
|
@@ -140,7 +140,7 @@ def get_app_name_add_app(
|
140 | 140 |
|
141 | 141 | def get_import_string_and_app(
|
142 | 142 | *, path: Union[Path, None] = None, app_name: Union[str, None] = None
|
143 | | -) -> tuple[str, FastAPI]: |
| 143 | +) -> Tuple[str, FastAPI]: |
144 | 144 | if not path:
|
145 | 145 | path = get_default_path()
|
146 | 146 | logger.info(f"Using path [blue]{path}[/blue]")
|
|
0 commit comments