rework django.views

This commit is contained in:
Maxim Kurnikov
2019-02-22 01:50:52 +03:00
parent 9ea25f3e56
commit 73ea682356
15 changed files with 90 additions and 137 deletions
@@ -1,4 +1,4 @@
from typing import Any, Callable, Optional
from typing import Callable
def xframe_options_deny(view_func: Callable) -> Callable: ...
def xframe_options_sameorigin(view_func: Callable) -> Callable: ...
+1 -1
View File
@@ -1,4 +1,4 @@
from typing import Any, Callable, Optional
from typing import Any, Callable
from django.middleware.csrf import CsrfViewMiddleware
+1 -1
View File
@@ -1,4 +1,4 @@
from typing import Any, Callable, Optional
from typing import Any, Callable
def sensitive_variables(*variables: Any) -> Callable: ...
def sensitive_post_parameters(*parameters: Any) -> Callable: ...
+1 -1
View File
@@ -1,4 +1,4 @@
from typing import Any, Callable, Optional
from typing import Any, Callable
def vary_on_headers(*headers: Any) -> Callable: ...
def vary_on_cookie(func: Callable) -> Callable: ...