We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8726338 commit b078a93Copy full SHA for b078a93
1 file changed
src/fastapi_cli/cli.py
@@ -47,7 +47,7 @@ def callback(
47
"""
48
49
50
-def _get_docs_url(uvicorn_path: str) -> str | None:
+def _get_docs_url(uvicorn_path: str) -> Union[str, None]:
51
module_path, app_name = uvicorn_path.split(sep=":")
52
module = importlib.import_module(module_path)
53
fastapi_app: FastAPI = getattr(module, app_name)
0 commit comments