mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 00:37:11 +08:00
24 lines
491 B
Python
24 lines
491 B
Python
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: ...
|