mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 05:24:53 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -4,7 +4,6 @@ from django.core.handlers.wsgi import WSGIRequest
|
||||
from django.http.response import HttpResponse, HttpResponsePermanentRedirect
|
||||
from django.utils.deprecation import MiddlewareMixin
|
||||
|
||||
|
||||
class SecurityMiddleware(MiddlewareMixin):
|
||||
sts_seconds: int = ...
|
||||
sts_include_subdomains: bool = ...
|
||||
@@ -16,9 +15,5 @@ class SecurityMiddleware(MiddlewareMixin):
|
||||
redirect_exempt: List[Any] = ...
|
||||
get_response: Optional[Callable] = ...
|
||||
def __init__(self, get_response: Optional[Callable] = ...) -> None: ...
|
||||
def process_request(
|
||||
self, request: WSGIRequest
|
||||
) -> Optional[HttpResponsePermanentRedirect]: ...
|
||||
def process_response(
|
||||
self, request: WSGIRequest, response: HttpResponse
|
||||
) -> HttpResponse: ...
|
||||
def process_request(self, request: WSGIRequest) -> Optional[HttpResponsePermanentRedirect]: ...
|
||||
def process_response(self, request: WSGIRequest, response: HttpResponse) -> HttpResponse: ...
|
||||
|
||||
Reference in New Issue
Block a user