mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-09-04 05:47:01 +08:00
move most of the generated files
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
from typing import Any, Callable, Optional
|
||||
|
||||
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: ...
|
||||
@@ -0,0 +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: ...
|
||||
@@ -0,0 +1,17 @@
|
||||
from typing import Any, Callable, Optional
|
||||
|
||||
from django.middleware.csrf import CsrfViewMiddleware
|
||||
|
||||
csrf_protect: Any
|
||||
|
||||
class _EnsureCsrfToken(CsrfViewMiddleware): ...
|
||||
|
||||
requires_csrf_token: Any
|
||||
|
||||
class _EnsureCsrfCookie(CsrfViewMiddleware):
|
||||
get_response: None
|
||||
def process_view(self, request: Any, callback: Any, callback_args: Any, callback_kwargs: Any): ...
|
||||
|
||||
ensure_csrf_cookie: Any
|
||||
|
||||
def csrf_exempt(view_func: Callable) -> Callable: ...
|
||||
@@ -0,0 +1,4 @@
|
||||
from typing import Any, Callable, Optional
|
||||
|
||||
def sensitive_variables(*variables: Any) -> Callable: ...
|
||||
def sensitive_post_parameters(*parameters: Any) -> Callable: ...
|
||||
@@ -0,0 +1,13 @@
|
||||
from typing import Any, Callable, List, Optional
|
||||
|
||||
conditional_page: Any
|
||||
|
||||
def require_http_methods(request_method_list: List[str]) -> Callable: ...
|
||||
|
||||
require_GET: Any
|
||||
require_POST: Any
|
||||
require_safe: Any
|
||||
|
||||
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: ...
|
||||
@@ -0,0 +1,4 @@
|
||||
from typing import Any, Callable, Optional
|
||||
|
||||
def vary_on_headers(*headers: Any) -> Callable: ...
|
||||
def vary_on_cookie(func: Callable) -> Callable: ...
|
||||
Reference in New Issue
Block a user