Skip to content

Commit 0142d1f

Browse files
committed
formatting
1 parent e41c357 commit 0142d1f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

litestar/handlers/asgi_handlers.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212

1313

1414
if TYPE_CHECKING:
15-
from litestar.connection import ASGIConnection
1615
from litestar import Litestar
16+
from litestar.connection import ASGIConnection
17+
from litestar.routes import BaseRoute
1718
from litestar.types import (
1819
AsyncAnyCallable,
1920
ExceptionHandlersMap,
@@ -22,7 +23,10 @@
2223

2324

2425
class ASGIRouteHandler(BaseRouteHandler):
25-
__slots__ = ("copy_scope", "is_mount",)
26+
__slots__ = (
27+
"copy_scope",
28+
"is_mount",
29+
)
2630

2731
def __init__(
2832
self,
@@ -76,8 +80,8 @@ def __init__(
7680
**kwargs,
7781
)
7882

79-
def on_registration(self, app: Litestar) -> None:
80-
super().on_registration(app)
83+
def on_registration(self, app: Litestar, route: BaseRoute) -> None:
84+
super().on_registration(app, route=route)
8185

8286
if self.copy_scope is None:
8387
warnings.warn(

0 commit comments

Comments
 (0)