Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut committed Jan 15, 2025
1 parent e41c357 commit 0142d1f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions litestar/handlers/asgi_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@


if TYPE_CHECKING:
from litestar.connection import ASGIConnection
from litestar import Litestar
from litestar.connection import ASGIConnection
from litestar.routes import BaseRoute
from litestar.types import (
AsyncAnyCallable,
ExceptionHandlersMap,
Expand All @@ -22,7 +23,10 @@


class ASGIRouteHandler(BaseRouteHandler):
__slots__ = ("copy_scope", "is_mount",)
__slots__ = (
"copy_scope",
"is_mount",
)

def __init__(
self,
Expand Down Expand Up @@ -76,8 +80,8 @@ def __init__(
**kwargs,
)

def on_registration(self, app: Litestar) -> None:
super().on_registration(app)
def on_registration(self, app: Litestar, route: BaseRoute) -> None:
super().on_registration(app, route=route)

if self.copy_scope is None:
warnings.warn(
Expand Down

0 comments on commit 0142d1f

Please sign in to comment.