Skip to content

Commit dda7dc6

Browse files
committed
fix: python 3.8 and 3.9 mypy error
1 parent 5e6e428 commit dda7dc6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/fastapi_cli/discover.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def get_module_data_from_path(path: Path) -> ModuleData:
7272

7373
def get_app_infos(
7474
*, mod_data: ModuleData, app_name: Union[str, None] = None
75-
) -> Tuple[str, str | None, str | None, str | None]:
75+
) -> Tuple[str, Union[str, None], Union[str, None], Union[str, None]]:
7676
try:
7777
mod = importlib.import_module(mod_data.module_import_str)
7878
except (ImportError, ValueError) as e:
@@ -124,9 +124,9 @@ class ImportData:
124124
app_name: str
125125
module_data: ModuleData
126126
import_string: str
127-
openapi_url: str | None = None
128-
docs_url: str | None = None
129-
redoc_url: str | None = None
127+
openapi_url: Union[str, None] = None
128+
docs_url: Union[str, None] = None
129+
redoc_url: Union[str, None] = None
130130

131131

132132
def get_import_data(

0 commit comments

Comments
 (0)