File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,11 @@ from django.contrib.auth.models import AnonymousUser
88from django .utils .functional import LazyObject
99
1010from .consumer import _ChannelScope , _LazySession
11- from .db import database_sync_to_async
1211from .utils import _ChannelApplication
1312
14- @database_sync_to_async
15- def get_user (scope : _ChannelScope ) -> AbstractBaseUser | AnonymousUser : ...
16- @database_sync_to_async
17- def login (scope : _ChannelScope , user : AbstractBaseUser , backend : BaseBackend | None = ...) -> None : ...
18- @database_sync_to_async
19- def logout (scope : _ChannelScope ) -> None : ...
13+ async def get_user (scope : _ChannelScope ) -> AbstractBaseUser | AnonymousUser : ...
14+ async def login (scope : _ChannelScope , user : AbstractBaseUser , backend : BaseBackend | None = ...) -> None : ...
15+ async def logout (scope : _ChannelScope ) -> None : ...
2016def _get_user_session_key (session : _LazySession ) -> Any : ...
2117
2218class UserLazyObject (AbstractBaseUser , LazyObject ):
You can’t perform that action at this time.
0 commit comments