Skip to content

Commit

Permalink
Change list to Sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Apr 14, 2024
1 parent 439af32 commit a46f1d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions starlette_plus/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import asyncio
import inspect
import logging
from collections.abc import Callable, Coroutine, Iterator
from collections.abc import Callable, Coroutine, Iterator, Sequence
from typing import TYPE_CHECKING, Any, Self, TypeAlias, TypedDict, Unpack

from starlette.applications import Starlette
Expand Down Expand Up @@ -49,7 +49,7 @@ class ApplicationOptions(TypedDict, total=False):
middleware: list[Middleware]
on_startup: list[Callable[[], Coroutine[Any, Any, None]]]
on_shutdown: list[Callable[[], Coroutine[Any, Any, None]]]
routes: list[Route | WebSocketRoute | Mount]
routes: Sequence[Route | WebSocketRoute | Mount]


__all__ = ("Application", "View", "route", "limit")
Expand Down

0 comments on commit a46f1d5

Please sign in to comment.