From 5d8576348ecbb4df5aa7d5502a598436081e2036 Mon Sep 17 00:00:00 2001 From: Maxim Kurnikov Date: Sat, 26 Jan 2019 18:04:26 +0300 Subject: [PATCH] make typecheck ci pass --- django-stubs/contrib/admin/options.pyi | 2 +- scripts/typecheck_django_tests.xsh | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/django-stubs/contrib/admin/options.pyi b/django-stubs/contrib/admin/options.pyi index 0a9e31d..bc2dbe1 100644 --- a/django-stubs/contrib/admin/options.pyi +++ b/django-stubs/contrib/admin/options.pyi @@ -204,7 +204,7 @@ class ModelAdmin(BaseModelAdmin): form_url: str = ..., 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_post_save_add(self, request: WSGIRequest, obj: Model) -> HttpResponseRedirect: ... def response_post_save_change(self, request: WSGIRequest, obj: Model) -> HttpResponseRedirect: ... diff --git a/scripts/typecheck_django_tests.xsh b/scripts/typecheck_django_tests.xsh index 176fdac..d8972a2 100644 --- a/scripts/typecheck_django_tests.xsh +++ b/scripts/typecheck_django_tests.xsh @@ -17,11 +17,12 @@ IGNORED_ERROR_PATTERNS = [ 'Invalid value for a to= parameter' ] TESTS_DIRS = [ - # 'absolute_url_overrides', - 'admin_custom_urls', - #'aggregation_regress', - #'annotations', - #'app_loading', + 'absolute_url_overrides', + 'admin_*', + 'aggregation', + 'aggregation_regress', + 'annotations', + 'app_loading', ] def check_file_in_the_current_directory(directory, fname):