mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 13:04:47 +08:00
make typecheck ci pass
This commit is contained in:
@@ -204,7 +204,7 @@ class ModelAdmin(BaseModelAdmin):
|
|||||||
form_url: str = ...,
|
form_url: str = ...,
|
||||||
obj: Optional[Any] = ...,
|
obj: Optional[Any] = ...,
|
||||||
): ...
|
): ...
|
||||||
def response_add(self, request: WSGIRequest, obj: Model, post_url_continue: None = ...) -> HttpResponse: ...
|
def response_add(self, request: WSGIRequest, obj: Model, post_url_continue: Optional[str] = ...) -> HttpResponse: ...
|
||||||
def response_change(self, request: WSGIRequest, obj: Model) -> HttpResponse: ...
|
def response_change(self, request: WSGIRequest, obj: Model) -> HttpResponse: ...
|
||||||
def response_post_save_add(self, request: WSGIRequest, obj: Model) -> HttpResponseRedirect: ...
|
def response_post_save_add(self, request: WSGIRequest, obj: Model) -> HttpResponseRedirect: ...
|
||||||
def response_post_save_change(self, request: WSGIRequest, obj: Model) -> HttpResponseRedirect: ...
|
def response_post_save_change(self, request: WSGIRequest, obj: Model) -> HttpResponseRedirect: ...
|
||||||
|
|||||||
@@ -17,11 +17,12 @@ IGNORED_ERROR_PATTERNS = [
|
|||||||
'Invalid value for a to= parameter'
|
'Invalid value for a to= parameter'
|
||||||
]
|
]
|
||||||
TESTS_DIRS = [
|
TESTS_DIRS = [
|
||||||
# 'absolute_url_overrides',
|
'absolute_url_overrides',
|
||||||
'admin_custom_urls',
|
'admin_*',
|
||||||
#'aggregation_regress',
|
'aggregation',
|
||||||
#'annotations',
|
'aggregation_regress',
|
||||||
#'app_loading',
|
'annotations',
|
||||||
|
'app_loading',
|
||||||
]
|
]
|
||||||
|
|
||||||
def check_file_in_the_current_directory(directory, fname):
|
def check_file_in_the_current_directory(directory, fname):
|
||||||
|
|||||||
Reference in New Issue
Block a user