From cabf4748af43e09f833825f197394c97ffa2cf69 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 26 Oct 2023 10:33:58 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- api/backends/entities.py | 8 +++++++- api/backends/github.py | 3 ++- persistence/.gitkeep | 1 - 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/api/backends/entities.py b/api/backends/entities.py index 50f3c15a..a47129e2 100644 --- a/api/backends/entities.py +++ b/api/backends/entities.py @@ -53,7 +53,13 @@ class Asset(dict): - download_url (str): The URL to download the asset. """ - def __init__(self, name: str, content_type: str, download_count: int, browser_download_url: str): + def __init__( + self, + name: str, + content_type: str, + download_count: int, + browser_download_url: str, + ): dict.__init__( self, name=name, diff --git a/api/backends/github.py b/api/backends/github.py index 223352cd..b7bb8755 100644 --- a/api/backends/github.py +++ b/api/backends/github.py @@ -70,7 +70,8 @@ def __init__(self): async def __assemble_release(release: dict) -> Release: async def __assemble_asset(asset: dict) -> Asset: asset_data: dict = keyfilter( - lambda key: key in {"name", "content_type", "download_count", "browser_download_url"}, + lambda key: key + in {"name", "content_type", "download_count", "browser_download_url"}, asset, ) return Asset(**asset_data) diff --git a/persistence/.gitkeep b/persistence/.gitkeep index d3f5a12f..e69de29b 100644 --- a/persistence/.gitkeep +++ b/persistence/.gitkeep @@ -1 +0,0 @@ -