diff --git a/litestar/plugins/flash.py b/litestar/plugins/flash.py index b7d67f7eb1..9062474d07 100644 --- a/litestar/plugins/flash.py +++ b/litestar/plugins/flash.py @@ -7,7 +7,6 @@ from typing import TYPE_CHECKING, Any, Mapping import litestar.exceptions -from litestar import Request from litestar.exceptions import MissingDependencyException from litestar.middleware import DefineMiddleware from litestar.middleware.session import SessionMiddleware @@ -20,7 +19,7 @@ from collections.abc import Callable from litestar.config.app import AppConfig - from litestar.connection.base import AuthT, StateT, UserT + from litestar.connection.base import ASGIConnection from litestar.template import TemplateConfig @@ -70,7 +69,7 @@ def on_app_init(self, app_config: AppConfig) -> AppConfig: def flash( - request: Request[UserT, AuthT, StateT], + request: ASGIConnection[Any, Any, Any, Any], message: Any, category: str, ) -> None: