black reformat, some fixes

This commit is contained in:
Maxim Kurnikov
2018-12-06 19:13:06 +03:00
parent 25a71a7ef5
commit 5ec2830ba6
108 changed files with 673 additions and 187 deletions

View File

@@ -14,7 +14,11 @@ ERROR_403_TEMPLATE_NAME: str
ERROR_400_TEMPLATE_NAME: str
ERROR_500_TEMPLATE_NAME: str
def page_not_found(request: WSGIRequest, exception: Optional[Http404], template_name: str = ...) -> HttpResponseNotFound: ...
def page_not_found(
request: WSGIRequest, exception: Optional[Http404], template_name: str = ...
) -> HttpResponseNotFound: ...
def server_error(request: WSGIRequest, template_name: str = ...) -> HttpResponseServerError: ...
def bad_request(request: WSGIRequest, exception: Exception, template_name: str = ...) -> HttpResponseBadRequest: ...
def permission_denied(request: WSGIRequest, exception: Exception, template_name: str = ...) -> HttpResponseForbidden: ...
def permission_denied(
request: WSGIRequest, exception: Exception, template_name: str = ...
) -> HttpResponseForbidden: ...

View File

@@ -32,7 +32,9 @@ class MultipleObjectMixin(ContextMixin):
) -> Paginator: ...
def get_paginate_orphans(self) -> int: ...
def get_allow_empty(self) -> bool: ...
def get_context_object_name(self, object_list: Optional[Union[List[Dict[str, str]], QuerySet]]) -> Optional[str]: ...
def get_context_object_name(
self, object_list: Optional[Union[List[Dict[str, str]], QuerySet]]
) -> Optional[str]: ...
def get_context_data(self, *, object_list: Optional[Any] = ..., **kwargs: Any) -> Dict[str, Any]: ...
class BaseListView(MultipleObjectMixin, View):