Skip to content

Commit a46f1d5

Browse files
committed
Change list to Sequence
1 parent 439af32 commit a46f1d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

starlette_plus/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import asyncio
1919
import inspect
2020
import logging
21-
from collections.abc import Callable, Coroutine, Iterator
21+
from collections.abc import Callable, Coroutine, Iterator, Sequence
2222
from typing import TYPE_CHECKING, Any, Self, TypeAlias, TypedDict, Unpack
2323

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

5454

5555
__all__ = ("Application", "View", "route", "limit")

0 commit comments

Comments
 (0)