File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 1- from typing import Any
2-
31from asgiref .typing import ASGIReceiveCallable , ASGISendCallable
42from channels .middleware import BaseMiddleware
53from django .contrib .auth .backends import BaseBackend
64from django .contrib .auth .base_user import AbstractBaseUser
75from django .contrib .auth .models import AnonymousUser
86from django .utils .functional import LazyObject
97
10- from .consumer import _ChannelScope , _LazySession
8+ from .consumer import _ChannelScope
119from .utils import _ChannelApplication
1210
1311async def get_user (scope : _ChannelScope ) -> AbstractBaseUser | AnonymousUser : ...
1412async def login (scope : _ChannelScope , user : AbstractBaseUser , backend : BaseBackend | None = ...) -> None : ...
1513async def logout (scope : _ChannelScope ) -> None : ...
16- def _get_user_session_key (session : _LazySession ) -> Any : ...
1714
18- class UserLazyObject (AbstractBaseUser , LazyObject ):
19- def _setup (self ) -> None : ...
15+ class UserLazyObject (AbstractBaseUser , LazyObject ): ...
2016
2117class AuthMiddleware (BaseMiddleware ):
2218 def populate_scope (self , scope : _ChannelScope ) -> None : ...
Original file line number Diff line number Diff line change @@ -7,12 +7,10 @@ class ChannelLayerManager:
77 backends : dict [str , BaseChannelLayer ]
88
99 def __init__ (self ) -> None : ...
10- def _reset_backends (self , setting : str , ** kwargs : Any ) -> None : ...
1110 @property
1211 def configs (self ) -> dict [str , Any ]: ...
1312 def make_backend (self , name : str ) -> BaseChannelLayer : ...
1413 def make_test_backend (self , name : str ) -> Any : ...
15- def _make_backend (self , name : str , config : dict [str , Any ]) -> BaseChannelLayer : ...
1614 def __getitem__ (self , key : str ) -> BaseChannelLayer : ...
1715 def __contains__ (self , key : str ) -> bool : ...
1816 def set (self , key : str , layer : BaseChannelLayer ) -> BaseChannelLayer | None : ...
You can’t perform that action at this time.
0 commit comments