Skip to content

🧑‍💻 Add conditional printing API docs URLs in panel #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: python 3.8 mypy error
  • Loading branch information
FlavienRx committed Dec 16, 2024
commit 1322b6b9e596539274e505e453db24a7fe6e40d1
4 changes: 2 additions & 2 deletions src/fastapi_cli/discover.py
Original file line number Diff line number Diff line change
@@ -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

@@ -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: