mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 13:04:47 +08:00
black reformat, some fixes
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user