move most of the generated files

This commit is contained in:
Maxim Kurnikov
2018-12-21 05:47:24 +03:00
parent 013b6ee538
commit d56ca8ea31
273 changed files with 139 additions and 1457 deletions
+5
View File
@@ -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: ...
+17
View File
@@ -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: ...
+4
View File
@@ -0,0 +1,4 @@
from typing import Any, Callable, Optional
def sensitive_variables(*variables: Any) -> Callable: ...
def sensitive_post_parameters(*parameters: Any) -> Callable: ...
+13
View File
@@ -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: ...
+4
View File
@@ -0,0 +1,4 @@
from typing import Any, Callable, Optional
def vary_on_headers(*headers: Any) -> Callable: ...
def vary_on_cookie(func: Callable) -> Callable: ...