File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def get_packages(package):
44
44
env_marker_below_38 = "python_version < '3.8'"
45
45
46
46
minimal_requirements = [
47
- "asgiref>=3.3.4 " ,
47
+ "asgiref>=3.4.0 " ,
48
48
"click>=7.*" ,
49
49
"h11>=0.8" ,
50
50
"typing-extensions;" + env_marker_below_38 ,
Original file line number Diff line number Diff line change 16
16
ASGISendCallable ,
17
17
HTTPScope ,
18
18
Scope ,
19
- WebsocketScope ,
19
+ WebSocketScope ,
20
20
)
21
21
22
22
@@ -47,7 +47,7 @@ async def __call__(
47
47
self , scope : Scope , receive : ASGIReceiveCallable , send : ASGISendCallable
48
48
) -> None :
49
49
if scope ["type" ] in ("http" , "websocket" ):
50
- scope = cast (Union [HTTPScope , WebsocketScope ], scope )
50
+ scope = cast (Union [HTTPScope , WebSocketScope ], scope )
51
51
client_addr : Optional [Tuple [str , int ]] = scope .get ("client" )
52
52
client_host = client_addr [0 ] if client_addr else None
53
53
You can’t perform that action at this time.
0 commit comments