From 473d04ce13b5f02feeb799edd694e62452d21464 Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Thu, 31 Oct 2024 14:13:13 +0300 Subject: [PATCH] Complete fix for #61 https://github.com/daijro/camoufox/issues/61 --- pythonlib/camoufox/pkgman.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pythonlib/camoufox/pkgman.py b/pythonlib/camoufox/pkgman.py index 3effb63..5095e99 100644 --- a/pythonlib/camoufox/pkgman.py +++ b/pythonlib/camoufox/pkgman.py @@ -26,7 +26,7 @@ from .exceptions import UnsupportedArchitecture, UnsupportedOS, UnsupportedVersi DownloadBuffer: TypeAlias = Union[BytesIO, tempfile._TemporaryFileWrapper, BufferedWriter] # Map machine architecture to Camoufox binary name -ARCH_MAP: dict[str, str] = { +ARCH_MAP: Dict[str, str] = { 'amd64': 'x86_64', 'x86_64': 'x86_64', 'x86': 'x86_64', @@ -163,7 +163,7 @@ class CamoufoxFetcher: return arch - def find_release(self, releases: List[dict]) -> Optional[Tuple[Version, str]]: + def find_release(self, releases: List[Dict]) -> Optional[Tuple[Version, str]]: """ Finds the latest release from a GitHub releases API response that supports the Camoufox version constraints, the OS, and architecture. @@ -440,7 +440,7 @@ def unzip( zf.extract(member, extract_path) -def load_yaml(file: str) -> dict: +def load_yaml(file: str) -> Dict: """ Loads a local YAML file and returns it as a dictionary. """