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

@@ -1,11 +1,5 @@
from typing import Any, Callable, Optional
def cache_page(
timeout: float,
*,
cache: Optional[Any] = ...,
key_prefix: Optional[Any] = ...
) -> Callable: ...
def cache_page(timeout: float, *, cache: Optional[Any] = ..., key_prefix: Optional[Any] = ...) -> Callable: ...
def cache_control(**kwargs: Any) -> Callable: ...
def never_cache(view_func: Callable) -> Callable: ...

View File

@@ -1,6 +1,5 @@
from typing import Any, Callable, Optional
def xframe_options_deny(view_func: Callable) -> Callable: ...
def xframe_options_sameorigin(view_func: Callable) -> Callable: ...
def xframe_options_exempt(view_func: Callable) -> Callable: ...

View File

@@ -10,13 +10,7 @@ requires_csrf_token: Any
class _EnsureCsrfCookie(CsrfViewMiddleware):
get_response: None
def process_view(
self,
request: Any,
callback: Any,
callback_args: Any,
callback_kwargs: Any,
): ...
def process_view(self, request: Any, callback: Any, callback_args: Any, callback_kwargs: Any): ...
ensure_csrf_cookie: Any

View File

@@ -1,5 +1,4 @@
from typing import Any, Callable, Optional
def sensitive_variables(*variables: Any) -> Callable: ...
def sensitive_post_parameters(*parameters: Any) -> Callable: ...

View File

@@ -8,9 +8,6 @@ require_GET: Any
require_POST: Any
require_safe: Any
def condition(
etag_func: Optional[Callable] = ...,
last_modified_func: Optional[Callable] = ...,
) -> Callable: ...
def condition(etag_func: Optional[Callable] = ..., last_modified_func: Optional[Callable] = ...) -> Callable: ...
def etag(etag_func: Callable) -> Callable: ...
def last_modified(last_modified_func: Callable) -> Callable: ...

View File

@@ -1,5 +1,4 @@
from typing import Any, Callable, Optional
def vary_on_headers(*headers: Any) -> Callable: ...
def vary_on_cookie(func: Callable) -> Callable: ...