mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-14 07:47:09 +08:00
third iteration of stubs
This commit is contained in:
@@ -15,13 +15,14 @@ class PermLookupDict:
|
||||
|
||||
class PermWrapper:
|
||||
user: django.utils.functional.SimpleLazyObject = ...
|
||||
def __init__(
|
||||
self, user: Union[SimpleLazyObject, AnonymousUser, User]
|
||||
) -> None: ...
|
||||
def __init__(self, user: Union[AnonymousUser, User]) -> None: ...
|
||||
def __getitem__(self, app_label: str) -> PermLookupDict: ...
|
||||
def __iter__(self) -> Any: ...
|
||||
def __contains__(self, perm_name: Union[str, bool]) -> bool: ...
|
||||
def __contains__(self, perm_name: Union[bool, str]) -> bool: ...
|
||||
|
||||
def auth(
|
||||
request: HttpRequest
|
||||
) -> Dict[str, Union[SimpleLazyObject, PermWrapper, User, AnonymousUser]]: ...
|
||||
) -> Union[
|
||||
Dict[str, Union[PermWrapper, AnonymousUser]],
|
||||
Dict[str, Union[PermWrapper, User]],
|
||||
]: ...
|
||||
|
||||
Reference in New Issue
Block a user