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 afc7bc1 commit 3691e04Copy full SHA for 3691e04
apitally/litestar.py
@@ -2,7 +2,7 @@
2
import sys
3
import time
4
from importlib.metadata import version
5
-from typing import Callable, Dict, Optional
+from typing import Callable, Dict, List, Optional
6
7
from litestar.app import DEFAULT_OPENAPI_CONFIG, Litestar
8
from litestar.config.app import AppConfig
@@ -143,7 +143,7 @@ def _get_openapi(app: Litestar) -> str:
143
return json.dumps(schema)
144
145
146
-def _get_paths(app: Litestar) -> list[dict[str, str]]:
+def _get_paths(app: Litestar) -> List[Dict[str, str]]:
147
openapi_config = app.openapi_config or DEFAULT_OPENAPI_CONFIG
148
schema_path = openapi_config.openapi_controller.path
149
return [
0 commit comments