mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 18:05:58 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
11
django-stubs-generated/views/decorators/cache.pyi
Normal file
11
django-stubs-generated/views/decorators/cache.pyi
Normal file
@@ -0,0 +1,11 @@
|
||||
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: ...
|
||||
6
django-stubs-generated/views/decorators/clickjacking.pyi
Normal file
6
django-stubs-generated/views/decorators/clickjacking.pyi
Normal file
@@ -0,0 +1,6 @@
|
||||
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: ...
|
||||
23
django-stubs-generated/views/decorators/csrf.pyi
Normal file
23
django-stubs-generated/views/decorators/csrf.pyi
Normal file
@@ -0,0 +1,23 @@
|
||||
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: ...
|
||||
5
django-stubs-generated/views/decorators/debug.pyi
Normal file
5
django-stubs-generated/views/decorators/debug.pyi
Normal file
@@ -0,0 +1,5 @@
|
||||
from typing import Any, Callable, Optional
|
||||
|
||||
|
||||
def sensitive_variables(*variables: Any) -> Callable: ...
|
||||
def sensitive_post_parameters(*parameters: Any) -> Callable: ...
|
||||
16
django-stubs-generated/views/decorators/http.pyi
Normal file
16
django-stubs-generated/views/decorators/http.pyi
Normal file
@@ -0,0 +1,16 @@
|
||||
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: ...
|
||||
5
django-stubs-generated/views/decorators/vary.pyi
Normal file
5
django-stubs-generated/views/decorators/vary.pyi
Normal file
@@ -0,0 +1,5 @@
|
||||
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