We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7223af6 commit 710b255Copy full SHA for 710b255
django-stubs/middleware/csp.pyi
@@ -1,11 +1,9 @@
1
-from django.utils.csp import CSP
2
from typing import TYPE_CHECKING
3
4
if TYPE_CHECKING:
5
from django.http import HttpRequest, HttpResponse
6
from django.utils.deprecation import MiddlewareMixin
7
8
-
9
class CSPMiddleware(MiddlewareMixin):
10
def process_request(self, request: HttpRequest) -> None: ...
11
def process_response(self, request: HttpRequest, response: HttpResponse) -> HttpResponse: ...
django-stubs/views/decorators/csp.pyi
@@ -1,5 +1,5 @@
-from typing import Any, TypeVar
from collections.abc import Callable
+from typing import Any, TypeVar
_F = TypeVar("_F", bound=Callable[..., Any])
0 commit comments