mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-20 19:01:16 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
from typing import Any, Callable, Optional
|
||||
|
||||
|
||||
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) -> Callable: ...
|
||||
def never_cache(view_func: Callable) -> Callable: ...
|
||||
|
||||
@@ -1,6 +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: ...
|
||||
|
||||
@@ -10,13 +10,7 @@ requires_csrf_token: Any
|
||||
|
||||
class _EnsureCsrfCookie(CsrfViewMiddleware):
|
||||
get_response: None
|
||||
def process_view(
|
||||
self,
|
||||
request: Any,
|
||||
callback: Any,
|
||||
callback_args: Any,
|
||||
callback_kwargs: Any,
|
||||
): ...
|
||||
def process_view(self, request: Any, callback: Any, callback_args: Any, callback_kwargs: Any): ...
|
||||
|
||||
ensure_csrf_cookie: Any
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from typing import Any, Callable, Optional
|
||||
|
||||
|
||||
def sensitive_variables(*variables: Any) -> Callable: ...
|
||||
def sensitive_post_parameters(*parameters: Any) -> Callable: ...
|
||||
|
||||
@@ -8,9 +8,6 @@ require_GET: Any
|
||||
require_POST: Any
|
||||
require_safe: Any
|
||||
|
||||
def condition(
|
||||
etag_func: Optional[Callable] = ...,
|
||||
last_modified_func: Optional[Callable] = ...,
|
||||
) -> Callable: ...
|
||||
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: ...
|
||||
|
||||
@@ -1,5 +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