Skip to content

Commit 83c7c7b

Browse files
committed
fix: python 3.8 mypy error
1 parent fd00219 commit 83c7c7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fastapi_cli/discover.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from dataclasses import dataclass
44
from logging import getLogger
55
from pathlib import Path
6-
from typing import List, Union
6+
from typing import List, Tuple, Union
77

88
from fastapi_cli.exceptions import FastAPICLIException
99

@@ -72,7 +72,7 @@ def get_module_data_from_path(path: Path) -> ModuleData:
7272

7373
def get_app_name(
7474
*, mod_data: ModuleData, app_name: Union[str, None] = None
75-
) -> tuple[str, FastAPI]:
75+
) -> Tuple[str, FastAPI]:
7676
try:
7777
mod = importlib.import_module(mod_data.module_import_str)
7878
except (ImportError, ValueError) as e:

0 commit comments

Comments
 (0)