Skip to content

Commit

Permalink
fix: use ASGIConnection instead of Request for flash (#3626)
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin authored Jul 15, 2024
1 parent f9b85f9 commit b82225a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions litestar/plugins/flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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


Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b82225a

Please sign in to comment.