Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 26, 2023
1 parent 1f5f730 commit cabf474
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion api/backends/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion api/backends/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion persistence/.gitkeep
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

0 comments on commit cabf474

Please sign in to comment.