From e169924f5ddb7a0e61a8de7dc2eaddfd7ab32bcd Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Wed, 12 Aug 2026 14:51:02 +0200 Subject: [PATCH] [django-import-export] Fix prefly tests The base classes of `ExportActionModelAdmin` are incompatible in the implementation when using Python >= 3.12. pyrefly flags this, but we can't do anything about it in the type stubs. --- stubs/django-import-export/import_export/admin.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/django-import-export/import_export/admin.pyi b/stubs/django-import-export/import_export/admin.pyi index 070dbd26720e..8480deb8ff67 100644 --- a/stubs/django-import-export/import_export/admin.pyi +++ b/stubs/django-import-export/import_export/admin.pyi @@ -105,5 +105,5 @@ class ExportActionMixin(ExportMixin[_ModelT]): def export_admin_action(self, request: HttpRequest, queryset: QuerySet[_ModelT]) -> HttpResponse: ... def get_actions(self, request: HttpRequest) -> dict[str, tuple[Callable[..., str], str, str] | None]: ... -class ExportActionModelAdmin(ExportActionMixin[_ModelT], admin.ModelAdmin[_ModelT]): ... # type: ignore[misc] +class ExportActionModelAdmin(ExportActionMixin[_ModelT], admin.ModelAdmin[_ModelT]): ... # type: ignore[misc] # pyrefly: ignore[inconsistent-inheritance] class ImportExportActionModelAdmin(ImportMixin[_ModelT], ExportActionModelAdmin[_ModelT]): ... # type: ignore[misc]