mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 05:51:53 +08:00
26 lines
604 B
Python
26 lines
604 B
Python
from csrf_tests.tests import TestingHttpRequest
|
|
from django.http.request import HttpRequest
|
|
from typing import (
|
|
Any,
|
|
Callable,
|
|
Dict,
|
|
Tuple,
|
|
)
|
|
|
|
|
|
def csrf_exempt(view_func: Callable) -> Callable: ...
|
|
|
|
|
|
class _EnsureCsrfCookie:
|
|
def _reject(self, request: TestingHttpRequest, reason: str) -> None: ...
|
|
def process_view(
|
|
self,
|
|
request: TestingHttpRequest,
|
|
callback: Callable,
|
|
callback_args: Tuple,
|
|
callback_kwargs: Dict[Any, Any]
|
|
) -> None: ...
|
|
|
|
|
|
class _EnsureCsrfToken:
|
|
def _reject(self, request: HttpRequest, reason: str) -> None: ... |