Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimon committed Feb 28, 2024
1 parent afc7bc1 commit 3691e04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apitally/litestar.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
import time
from importlib.metadata import version
from typing import Callable, Dict, Optional
from typing import Callable, Dict, List, Optional

from litestar.app import DEFAULT_OPENAPI_CONFIG, Litestar
from litestar.config.app import AppConfig
Expand Down Expand Up @@ -143,7 +143,7 @@ def _get_openapi(app: Litestar) -> str:
return json.dumps(schema)


def _get_paths(app: Litestar) -> list[dict[str, str]]:
def _get_paths(app: Litestar) -> List[Dict[str, str]]:
openapi_config = app.openapi_config or DEFAULT_OPENAPI_CONFIG
schema_path = openapi_config.openapi_controller.path
return [
Expand Down

0 comments on commit 3691e04

Please sign in to comment.