third iteration of stubs

This commit is contained in:
Maxim Kurnikov
2018-08-11 00:19:50 +03:00
parent fa718b8e55
commit c6bceb19f4
216 changed files with 16306 additions and 3006 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
from typing import Any, Callable, Optional
from typing import Any, Callable, Optional, Union
def cache_page(
timeout: float,
timeout: Union[float, int],
*,
cache: Optional[Any] = ...,
key_prefix: Optional[Any] = ...
+3 -2
View File
@@ -1,4 +1,4 @@
from typing import Any, Optional
from typing import Any, Callable, Optional
from django.middleware.csrf import CsrfViewMiddleware
@@ -9,6 +9,7 @@ class _EnsureCsrfToken(CsrfViewMiddleware): ...
requires_csrf_token: Any
class _EnsureCsrfCookie(CsrfViewMiddleware):
get_response: None
def process_view(
self,
request: Any,
@@ -19,4 +20,4 @@ class _EnsureCsrfCookie(CsrfViewMiddleware):
ensure_csrf_cookie: Any
def csrf_exempt(view_func: Any): ...
def csrf_exempt(view_func: Callable) -> Callable: ...