From aeb41b2eaebdc522fedd5f5155f55fe1651c4a17 Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Sun, 6 Oct 2024 14:55:27 +0200 Subject: [PATCH] made mypy and ruff happy --- syng/client.py | 2 +- syng/sources/s3.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/syng/client.py b/syng/client.py index 604a1d3..7625fda 100644 --- a/syng/client.py +++ b/syng/client.py @@ -410,7 +410,7 @@ async def handle_request_config(data: dict[str, Any]) -> None: updated_config = await sources[data["source"]].update_config() if isinstance(updated_config, list): - num_chunks: int = len(updated_config) + num_chunks = len(updated_config) for current, chunk in enumerate(updated_config): await sio.emit( "config-chunk", diff --git a/syng/sources/s3.py b/syng/sources/s3.py index 89c5069..b3be9bd 100644 --- a/syng/sources/s3.py +++ b/syng/sources/s3.py @@ -5,7 +5,6 @@ Adds it to the ``available_sources`` with the name ``s3`` """ import asyncio -from itertools import zip_longest import os from json import dump, load from typing import TYPE_CHECKING, Any, Optional, Tuple, cast