From 51989435c30917f3233920e1d77f2b5b72826519 Mon Sep 17 00:00:00 2001 From: Andy Babic Date: Fri, 13 Dec 2024 13:21:39 +0000 Subject: [PATCH] Use abstract Collection type in update_file_permissions() annotation --- .../management/commands/retry_file_permission_set_attempts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cms/private_media/management/commands/retry_file_permission_set_attempts.py b/cms/private_media/management/commands/retry_file_permission_set_attempts.py index 1267876d..52bc9338 100644 --- a/cms/private_media/management/commands/retry_file_permission_set_attempts.py +++ b/cms/private_media/management/commands/retry_file_permission_set_attempts.py @@ -1,3 +1,4 @@ +from collections.abc import Collection from typing import TYPE_CHECKING, Any from django.core.management.base import BaseCommand @@ -49,7 +50,7 @@ def handle(self, *args: Any, **options: Any) -> None: self.update_file_permissions(model, make_public, Privacy.PUBLIC) def update_file_permissions( - self, model_class: type["PrivateMediaMixin"], items: list["PrivateMediaMixin"], privacy: Privacy + self, model_class: type["PrivateMediaMixin"], items: Collection["PrivateMediaMixin"], privacy: Privacy ) -> None: """Update the file permissions for the provided items to reflect the provided privacy status.""" plural = model_class._meta.verbose_name_plural