run black over stubs, add checking to travis

This commit is contained in:
Maxim Kurnikov
2018-12-03 18:52:44 +03:00
parent d5bc7d4ab2
commit cf6119bf9b
420 changed files with 2295 additions and 8384 deletions

View File

@@ -6,7 +6,6 @@ from django.db.models.query import QuerySet
from django.http import HttpRequest
from django.http.response import HttpResponse, HttpResponseRedirect
def render_to_response(
template_name: Union[List[str], str],
context: Optional[Dict[str, str]] = ...,
@@ -22,17 +21,7 @@ def render(
status: Optional[int] = ...,
using: Optional[str] = ...,
) -> HttpResponse: ...
def redirect(
to: Union[Callable, str], *args: Any, permanent: bool = ..., **kwargs: Any
) -> HttpResponseRedirect: ...
def get_object_or_404(
klass: Union[Type[Model], Manager, QuerySet, str], *args: Any, **kwargs: Any
) -> Model: ...
def get_list_or_404(
klass: Union[List[Type[Model]], Manager, QuerySet],
*args: Any,
**kwargs: Any
) -> List[Model]: ...
def resolve_url(
to: Union[Callable, Model, str], *args: Any, **kwargs: Any
) -> str: ...
def redirect(to: Union[Callable, str], *args: Any, permanent: bool = ..., **kwargs: Any) -> HttpResponseRedirect: ...
def get_object_or_404(klass: Union[Type[Model], Manager, QuerySet, str], *args: Any, **kwargs: Any) -> Model: ...
def get_list_or_404(klass: Union[List[Type[Model]], Manager, QuerySet], *args: Any, **kwargs: Any) -> List[Model]: ...
def resolve_url(to: Union[Callable, Model, str], *args: Any, **kwargs: Any) -> str: ...