rework django.views

This commit is contained in:
Maxim Kurnikov
2019-02-22 01:50:52 +03:00
parent 9ea25f3e56
commit 73ea682356
15 changed files with 90 additions and 137 deletions

View File

@@ -34,9 +34,9 @@ class SafeExceptionReporterFilter(ExceptionReporterFilter):
class ExceptionReporter:
request: Optional[HttpRequest] = ...
filter: ExceptionReporterFilter = ...
exc_type: None = ...
exc_type: Optional[Type[BaseException]] = ...
exc_value: Optional[str] = ...
tb: None = ...
tb: Optional[TracebackType] = ...
is_email: bool = ...
template_info: None = ...
template_does_not_exist: bool = ...
@@ -59,7 +59,7 @@ class ExceptionReporter:
lineno: int,
context_lines: int,
loader: Optional[SourceLoader] = ...,
module_name: Optional[str] = None,
module_name: Optional[str] = ...,
): ...
def technical_404_response(request: HttpRequest, exception: Http404) -> HttpResponse: ...