Skip to content

Commit

Permalink
fix circular imports
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Apr 16, 2024
1 parent 64f3aa0 commit 4ee924a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions superdesk/media/renditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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)
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4ee924a

Please sign in to comment.