Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use ASGIConnection instead of Request for flash #3626

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading