Skip to content

Commit 9551812

Browse files
committed
Remove internal function type definitions
1 parent a58a6b9 commit 9551812

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

stubs/channels/channels/auth.pyi

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1-
from typing import Any
2-
31
from asgiref.typing import ASGIReceiveCallable, ASGISendCallable
42
from channels.middleware import BaseMiddleware
53
from django.contrib.auth.backends import BaseBackend
64
from django.contrib.auth.base_user import AbstractBaseUser
75
from django.contrib.auth.models import AnonymousUser
86
from django.utils.functional import LazyObject
97

10-
from .consumer import _ChannelScope, _LazySession
8+
from .consumer import _ChannelScope
119
from .utils import _ChannelApplication
1210

1311
async def get_user(scope: _ChannelScope) -> AbstractBaseUser | AnonymousUser: ...
1412
async def login(scope: _ChannelScope, user: AbstractBaseUser, backend: BaseBackend | None = ...) -> None: ...
1513
async 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

2117
class AuthMiddleware(BaseMiddleware):
2218
def populate_scope(self, scope: _ChannelScope) -> None: ...

stubs/channels/channels/layers.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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: ...

0 commit comments

Comments
 (0)