mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-20 19:01:16 +08:00
first version finished
This commit is contained in:
26
django/views/decorators/csrf.pyi
Normal file
26
django/views/decorators/csrf.pyi
Normal file
@@ -0,0 +1,26 @@
|
||||
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: ...
|
||||
Reference in New Issue
Block a user