Skip to content

Commit

Permalink
fix: python 3.8 mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
FlavienRx committed Dec 16, 2024
1 parent 9f95bd6 commit 1322b6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fastapi_cli/discover.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from dataclasses import dataclass
from logging import getLogger
from pathlib import Path
from typing import List, Union
from typing import List, Tuple, Union

from fastapi_cli.exceptions import FastAPICLIException

Expand Down Expand Up @@ -72,7 +72,7 @@ def get_module_data_from_path(path: Path) -> ModuleData:

def get_app_name(
*, mod_data: ModuleData, app_name: Union[str, None] = None
) -> tuple[str, FastAPI]:
) -> Tuple[str, FastAPI]:
try:
mod = importlib.import_module(mod_data.module_import_str)
except (ImportError, ValueError) as e:
Expand Down

0 comments on commit 1322b6b

Please sign in to comment.