mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-09-02 04:47:02 +08:00
reformat with black
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user