better stubs

This commit is contained in:
Maxim Kurnikov
2018-08-05 03:13:19 +03:00
parent 4013fe4d03
commit fa718b8e55
380 changed files with 11805 additions and 8503 deletions

View File

@@ -1,25 +1,27 @@
# Stubs for django.contrib.auth.context_processors (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from typing import Any, Dict, Optional, Union
from django.contrib.auth.models import AnonymousUser, User
from django.http.request import HttpRequest
from typing import Dict, Union
from django.utils.functional import SimpleLazyObject
class PermLookupDict:
def __init__(self, user: object, app_label: str) -> None: ...
def __repr__(self): ...
app_label: django.utils.safestring.SafeText
user: django.utils.functional.SimpleLazyObject
def __init__(self, user: SimpleLazyObject, app_label: str) -> None: ...
def __getitem__(self, perm_name: str) -> bool: ...
def __iter__(self) -> None: ...
def __iter__(self) -> Any: ...
def __bool__(self) -> bool: ...
class PermWrapper:
user: Any = ...
def __init__(self, user: object) -> None: ...
user: django.utils.functional.SimpleLazyObject = ...
def __init__(
self, user: Union[SimpleLazyObject, AnonymousUser, User]
) -> None: ...
def __getitem__(self, app_label: str) -> PermLookupDict: ...
def __iter__(self) -> None: ...
def __contains__(self, perm_name: str) -> bool: ...
def __iter__(self) -> Any: ...
def __contains__(self, perm_name: Union[str, bool]) -> bool: ...
def auth(request: HttpRequest) -> Dict[str, Union[PermWrapper, AnonymousUser, User]]: ...
def auth(
request: HttpRequest
) -> Dict[str, Union[SimpleLazyObject, PermWrapper, User, AnonymousUser]]: ...