From aac83148374279a95bd13ad283e74f0429914b6d Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Mon, 17 Jun 2024 16:10:27 +0200 Subject: [PATCH] Fixed typing in s3 --- syng/sources/s3.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/syng/sources/s3.py b/syng/sources/s3.py index 2e24709..8bf294c 100644 --- a/syng/sources/s3.py +++ b/syng/sources/s3.py @@ -3,6 +3,7 @@ Construct the S3 source. Adds it to the ``available_sources`` with the name ``s3`` """ + import asyncio import os from json import dump, load @@ -135,8 +136,9 @@ class S3Source(FileBasedSource): asyncio.to_thread(self.minio.fget_object, self.bucket, entry.ident, video_dl_path) ) + audio_dl_path: Optional[str] if audio_path is not None: - audio_dl_path: Optional[str] = os.path.join(self.tmp_dir, audio_path) + audio_dl_path = os.path.join(self.tmp_dir, audio_path) audio_dl_task: asyncio.Task[Any] = asyncio.create_task( asyncio.to_thread(self.minio.fget_object, self.bucket, audio_path, audio_dl_path)