File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 12
12
13
13
14
14
if TYPE_CHECKING :
15
- from litestar .connection import ASGIConnection
16
15
from litestar import Litestar
16
+ from litestar .connection import ASGIConnection
17
+ from litestar .routes import BaseRoute
17
18
from litestar .types import (
18
19
AsyncAnyCallable ,
19
20
ExceptionHandlersMap ,
22
23
23
24
24
25
class ASGIRouteHandler (BaseRouteHandler ):
25
- __slots__ = ("copy_scope" , "is_mount" ,)
26
+ __slots__ = (
27
+ "copy_scope" ,
28
+ "is_mount" ,
29
+ )
26
30
27
31
def __init__ (
28
32
self ,
@@ -76,8 +80,8 @@ def __init__(
76
80
** kwargs ,
77
81
)
78
82
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 )
81
85
82
86
if self .copy_scope is None :
83
87
warnings .warn (
You can’t perform that action at this time.
0 commit comments