mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 05:51:53 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -11,19 +11,13 @@ CLEANSED_SUBSTITUTE: str
|
||||
CURRENT_DIR: Any
|
||||
|
||||
class CallableSettingWrapper:
|
||||
def __init__(
|
||||
self, callable_setting: Union[Callable, Type[Any]]
|
||||
) -> None: ...
|
||||
def __init__(self, callable_setting: Union[Callable, Type[Any]]) -> None: ...
|
||||
|
||||
def cleanse_setting(key: Union[int, str], value: Any) -> Any: ...
|
||||
def get_safe_settings() -> Dict[str, Any]: ...
|
||||
def technical_500_response(
|
||||
request: Any, exc_type: Any, exc_value: Any, tb: Any, status_code: int = ...
|
||||
): ...
|
||||
def technical_500_response(request: Any, exc_type: Any, exc_value: Any, tb: Any, status_code: int = ...): ...
|
||||
def get_default_exception_reporter_filter() -> SafeExceptionReporterFilter: ...
|
||||
def get_exception_reporter_filter(
|
||||
request: Optional[WSGIRequest]
|
||||
) -> SafeExceptionReporterFilter: ...
|
||||
def get_exception_reporter_filter(request: Optional[WSGIRequest]) -> SafeExceptionReporterFilter: ...
|
||||
|
||||
class ExceptionReporterFilter:
|
||||
def get_post_parameters(self, request: Any): ...
|
||||
@@ -31,15 +25,9 @@ class ExceptionReporterFilter:
|
||||
|
||||
class SafeExceptionReporterFilter(ExceptionReporterFilter):
|
||||
def is_active(self, request: Optional[WSGIRequest]) -> bool: ...
|
||||
def get_cleansed_multivaluedict(
|
||||
self, request: WSGIRequest, multivaluedict: QueryDict
|
||||
) -> QueryDict: ...
|
||||
def get_post_parameters(
|
||||
self, request: Optional[WSGIRequest]
|
||||
) -> Union[Dict[Any, Any], QueryDict]: ...
|
||||
def cleanse_special_types(
|
||||
self, request: Optional[WSGIRequest], value: Any
|
||||
) -> Any: ...
|
||||
def get_cleansed_multivaluedict(self, request: WSGIRequest, multivaluedict: QueryDict) -> QueryDict: ...
|
||||
def get_post_parameters(self, request: Optional[WSGIRequest]) -> Union[Dict[Any, Any], QueryDict]: ...
|
||||
def cleanse_special_types(self, request: Optional[WSGIRequest], value: Any) -> Any: ...
|
||||
def get_traceback_frame_variables(self, request: Any, tb_frame: Any): ...
|
||||
|
||||
class ExceptionReporter:
|
||||
@@ -53,19 +41,12 @@ class ExceptionReporter:
|
||||
template_does_not_exist: bool = ...
|
||||
postmortem: None = ...
|
||||
def __init__(
|
||||
self,
|
||||
request: Optional[WSGIRequest],
|
||||
exc_type: None,
|
||||
exc_value: Optional[str],
|
||||
tb: None,
|
||||
is_email: bool = ...,
|
||||
self, request: Optional[WSGIRequest], exc_type: None, exc_value: Optional[str], tb: None, is_email: bool = ...
|
||||
) -> None: ...
|
||||
def get_traceback_data(self) -> Dict[str, Any]: ...
|
||||
def get_traceback_html(self) -> SafeText: ...
|
||||
def get_traceback_text(self) -> SafeText: ...
|
||||
def get_traceback_frames(self) -> List[Any]: ...
|
||||
|
||||
def technical_404_response(
|
||||
request: WSGIRequest, exception: Http404
|
||||
) -> HttpResponse: ...
|
||||
def technical_404_response(request: WSGIRequest, exception: Http404) -> HttpResponse: ...
|
||||
def default_urlconf(request: WSGIRequest) -> HttpResponse: ...
|
||||
|
||||
Reference in New Issue
Block a user