mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-13 15:31:55 +08:00
22 lines
521 B
Python
22 lines
521 B
Python
from django.core.handlers.wsgi import WSGIRequest
|
|
from django.http.response import HttpResponse
|
|
from django.urls.resolvers import URLResolver
|
|
from typing import Callable
|
|
|
|
|
|
def convert_exception_to_response(get_response: Callable) -> Callable: ...
|
|
|
|
|
|
def get_exception_response(
|
|
request: WSGIRequest,
|
|
resolver: URLResolver,
|
|
status_code: int,
|
|
exception: Exception,
|
|
sender: None = ...
|
|
) -> HttpResponse: ...
|
|
|
|
|
|
def response_for_exception(
|
|
request: WSGIRequest,
|
|
exc: Exception
|
|
) -> HttpResponse: ... |