Skip to content

Commit 710b255

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent 7223af6 commit 710b255

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

django-stubs/middleware/csp.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
from django.utils.csp import CSP
21
from typing import TYPE_CHECKING
32

43
if TYPE_CHECKING:
54
from django.http import HttpRequest, HttpResponse
65
from django.utils.deprecation import MiddlewareMixin
76

8-
97
class CSPMiddleware(MiddlewareMixin):
108
def process_request(self, request: HttpRequest) -> None: ...
119
def process_response(self, request: HttpRequest, response: HttpResponse) -> HttpResponse: ...

django-stubs/views/decorators/csp.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from typing import Any, TypeVar
21
from collections.abc import Callable
2+
from typing import Any, TypeVar
33

44
_F = TypeVar("_F", bound=Callable[..., Any])
55

0 commit comments

Comments
 (0)