44information, extract AppImage assets, and manage GitHub-specific operations.
55"""
66
7- import re
87from dataclasses import dataclass
98from typing import Any , TypedDict , cast
109from urllib .parse import urlparse
1716from .services .progress import get_progress_service
1817from .utils import (
1918 extract_and_validate_version ,
20- is_checksum_file ,
2119 get_checksum_file_format_type ,
20+ is_checksum_file ,
2221)
2322
2423logger = get_logger (__name__ )
@@ -198,6 +197,7 @@ async def _try_fetch_stable_release(
198197
199198 Raises:
200199 aiohttp.ClientError: If there are actual API/network errors
200+
201201 """
202202 try :
203203 # Check cache first (unless bypassed)
@@ -289,6 +289,7 @@ async def _try_fetch_prerelease(
289289
290290 Raises:
291291 aiohttp.ClientError: If there are actual API/network errors
292+
292293 """
293294 try :
294295 # Check cache first (unless bypassed)
@@ -699,7 +700,7 @@ def extract_appimage_assets(self, release_data: GitHubReleaseDetails) -> list[Gi
699700 if asset ["name" ].endswith (".AppImage" ) or asset ["name" ].endswith (".appimage" )
700701 ]
701702
702- #FIXME: too many branches
703+ # FIXME: too many branches
703704 def select_best_appimage (
704705 self ,
705706 release_data : GitHubReleaseDetails ,
@@ -793,7 +794,7 @@ def select_best_appimage(
793794 # Fallback: return first candidate
794795 return candidates [0 ]
795796
796- #FIXME: unused, move the auth or make this to check the available rate status
797+ # FIXME: unused, move the auth or make this to check the available rate status
797798 # and use in the github api requests to prevent limit errors
798799 async def check_rate_limit (self ) -> dict [str , Any ]:
799800 """Check current rate limit status.
@@ -810,7 +811,7 @@ async def check_rate_limit(self) -> dict[str, Any]:
810811 data = await response .json ()
811812 return data
812813
813- #FIXME: unused? checkout parser.py or url install template method
814+ # FIXME: unused? checkout parser.py or url install template method
814815 @staticmethod
815816 def parse_repo_url (repo_url : str ) -> tuple [str , str ]:
816817 """Parse GitHub repository URL to extract owner and repo.
@@ -868,7 +869,7 @@ async def get_default_branch(self) -> str:
868869 f"Fetched default branch for { self .owner } /{ self .repo } "
869870 )
870871
871- #FIXME: return str not Any
872+ # FIXME: return str not Any
872873 return data .get ("default_branch" , "main" )
873874
874875 def build_icon_url (self , icon_path : str , branch : str | None = None ) -> str :
0 commit comments