Skip to content

Commit b078a93

Browse files
committed
style: use Union
1 parent 8726338 commit b078a93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/fastapi_cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def callback(
4747
"""
4848

4949

50-
def _get_docs_url(uvicorn_path: str) -> str | None:
50+
def _get_docs_url(uvicorn_path: str) -> Union[str, None]:
5151
module_path, app_name = uvicorn_path.split(sep=":")
5252
module = importlib.import_module(module_path)
5353
fastapi_app: FastAPI = getattr(module, app_name)

0 commit comments

Comments
 (0)