mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 00:37:11 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -6,7 +6,6 @@ from django.db.models.query import QuerySet
|
||||
from django.template.response import TemplateResponse
|
||||
from django.views.generic.base import ContextMixin, TemplateResponseMixin, View
|
||||
|
||||
|
||||
class MultipleObjectMixin(ContextMixin):
|
||||
allow_empty: bool = ...
|
||||
queryset: Any = ...
|
||||
@@ -21,12 +20,8 @@ class MultipleObjectMixin(ContextMixin):
|
||||
def get_ordering(self) -> Optional[Union[Tuple[str, str], str]]: ...
|
||||
def paginate_queryset(
|
||||
self, queryset: Union[List[Dict[str, str]], QuerySet], page_size: int
|
||||
) -> Tuple[
|
||||
Paginator, Page, Union[List[Dict[str, str]], QuerySet], bool
|
||||
]: ...
|
||||
def get_paginate_by(
|
||||
self, queryset: Optional[Union[List[Dict[str, str]], QuerySet]]
|
||||
) -> Optional[int]: ...
|
||||
) -> Tuple[Paginator, Page, Union[List[Dict[str, str]], QuerySet], bool]: ...
|
||||
def get_paginate_by(self, queryset: Optional[Union[List[Dict[str, str]], QuerySet]]) -> Optional[int]: ...
|
||||
def get_paginator(
|
||||
self,
|
||||
queryset: Union[List[Dict[str, str]], QuerySet],
|
||||
@@ -37,18 +32,12 @@ 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_data(
|
||||
self, *, object_list: Optional[Any] = ..., **kwargs: Any
|
||||
) -> Dict[str, Any]: ...
|
||||
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):
|
||||
object_list: Any = ...
|
||||
def get(
|
||||
self, request: WSGIRequest, *args: Any, **kwargs: Any
|
||||
) -> TemplateResponse: ...
|
||||
def get(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> TemplateResponse: ...
|
||||
|
||||
class MultipleObjectTemplateResponseMixin(TemplateResponseMixin):
|
||||
template_name_suffix: str = ...
|
||||
|
||||
Reference in New Issue
Block a user