From 4ee924a423c63b990d3c51ce39979f731f35e639 Mon Sep 17 00:00:00 2001 From: Mark Pittaway Date: Tue, 16 Apr 2024 11:32:00 +1000 Subject: [PATCH] fix circular imports --- superdesk/media/renditions.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/superdesk/media/renditions.py b/superdesk/media/renditions.py index d6de3b481c..31d0b30023 100644 --- a/superdesk/media/renditions.py +++ b/superdesk/media/renditions.py @@ -25,7 +25,6 @@ from superdesk import get_resource_service from superdesk.filemeta import set_filemeta import os -from superdesk.io.feeding_services import FeedingService logger = logging.getLogger(__name__) @@ -346,7 +345,7 @@ def get_renditions_spec(without_internal_renditions=False, no_custom_crops=False def download_file_from_feeding_service_or_directly( - url: str, feeding_service: Optional[FeedingService] = None, **kwargs: Dict[str, Any] + url: str, feeding_service: Optional[Any] = None, **kwargs: Dict[str, Any] ) -> Tuple[BytesIO, str, str]: if feeding_service is not None and hasattr(feeding_service, "download_file"): return feeding_service.download_file(url, **kwargs) @@ -358,7 +357,7 @@ def update_renditions( href: str, old_item: Optional[Dict[str, Any]], request_kwargs: Optional[Dict[str, Any]] = None, - feeding_service: Optional[FeedingService] = None, + feeding_service: Optional[Any] = None, ): """Update renditions for an item. @@ -409,7 +408,7 @@ def update_renditions( def transfer_renditions( renditions: Dict[str, Any], request_kwargs: Optional[Dict[str, Any]] = None, - feeding_service: Optional[FeedingService] = None, + feeding_service: Optional[Any] = None, ): """Transfer the passed renditions to localy held renditions