File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ def use_scope() -> dict[str, Any]:
7777 scope = _use_scope ()
7878
7979 if isinstance (scope , dict ):
80- return cast (dict [str , Any ], scope )
80+ return cast (" dict[str, Any]" , scope )
8181
8282 msg = f"Expected scope to be a dict, got { type (scope )} "
8383 raise TypeError (msg )
Original file line number Diff line number Diff line change 4343 from collections .abc import Awaitable , Mapping , Sequence
4444
4545 from django .views import View
46- from reactpy .types import ComponentConstructor , VdomDict
46+ from reactpy .types import ComponentConstructor
4747
4848 from reactpy_django .types import FuncParams , Inferred
4949
Original file line number Diff line number Diff line change 2828 from collections .abc import MutableMapping , Sequence
2929 from concurrent .futures import Future
3030
31- from django .contrib .auth .models import AbstractUser
32-
3331 from reactpy_django import models
3432 from reactpy_django .types import ComponentParams
3533
@@ -160,7 +158,7 @@ async def run_dispatcher(self):
160158 http_query_string = query_string .get ("qs" , ["" ])[0 ]
161159 self .recv_queue = asyncio .Queue ()
162160 connection = Connection ( # For `use_connection`
163- scope = cast (dict [str , Any ], scope ),
161+ scope = cast (" dict[str, Any]" , scope ),
164162 location = Location (path = http_path , query_string = http_query_string ),
165163 carrier = self ,
166164 )
You can’t perform that action at this time.
0 commit comments