mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-20 02:41:16 +08:00
20 lines
477 B
Python
20 lines
477 B
Python
from typing import Any, Callable, TypeVar
|
|
|
|
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
|
|
|
|
_F = TypeVar("_F", bound=Callable[..., Any])
|
|
|
|
def csrf_exempt(view_func: _F) -> _F: ...
|