reformat with black

This commit is contained in:
Maxim Kurnikov
2018-07-29 23:34:58 +03:00
parent 4866354600
commit cf85607969
343 changed files with 6054 additions and 2158 deletions
+4 -1
View File
@@ -5,6 +5,9 @@
from typing import Any, Optional
from typing import Callable
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): ...
def never_cache(view_func: Callable) -> Callable: ...
+8 -1
View File
@@ -7,6 +7,7 @@ from typing import Any
from django.http.request import HttpRequest
from typing import Any, Callable, Dict, Tuple
csrf_protect: Any
class _EnsureCsrfToken(CsrfViewMiddleware):
@@ -16,7 +17,13 @@ requires_csrf_token: Any
class _EnsureCsrfCookie(CsrfViewMiddleware):
def _reject(self, request: HttpRequest, reason: str) -> None: ...
def process_view(self, request: HttpRequest, callback: Callable, callback_args: Tuple, callback_kwargs: Dict[Any, Any]) -> None: ...
def process_view(
self,
request: HttpRequest,
callback: Callable,
callback_args: Tuple,
callback_kwargs: Dict[Any, Any],
) -> None: ...
ensure_csrf_cookie: Any
+1
View File
@@ -5,5 +5,6 @@
from typing import Any
from typing import Callable
def sensitive_variables(*variables: Any) -> Callable: ...
def sensitive_post_parameters(*parameters: Any) -> Callable: ...
+1
View File
@@ -5,6 +5,7 @@
from typing import Any, Optional
from typing import Callable, List
conditional_page: Any
def require_http_methods(request_method_list: List[str]) -> Callable: ...
+1
View File
@@ -5,5 +5,6 @@
from typing import Any
from typing import Callable
def vary_on_headers(*headers: Any) -> Callable: ...
def vary_on_cookie(func: Callable) -> Callable: ...