pythonlib: Fully fix #61 0.3.6

This commit is contained in:
daijro 2024-10-31 06:42:47 -05:00
parent a75a20bcdc
commit 33189cd5b4
4 changed files with 9 additions and 4 deletions

View file

@ -27,7 +27,10 @@ class ExtendedScreen(ScreenFingerprint):
def _cast_to_properties(
camoufox_data: dict, cast_enum: dict, bf_dict: dict, ff_version: Optional[str] = None
camoufox_data: Dict[str, Any],
cast_enum: Dict[str, Any],
bf_dict: Dict[str, Any],
ff_version: Optional[str] = None,
) -> None:
"""
Casts Browserforge fingerprints to Camoufox config properties.

View file

@ -9,7 +9,7 @@ from dataclasses import dataclass
from functools import total_ordering
from io import BufferedWriter, BytesIO
from pathlib import Path
from typing import Dict, List, Literal, Optional, Tuple, Union
from typing import Any, Dict, List, Literal, Optional, Tuple, Union
from zipfile import ZipFile
import click
@ -440,7 +440,7 @@ def unzip(
zf.extract(member, extract_path)
def load_yaml(file: str) -> Dict:
def load_yaml(file: str) -> Dict[str, Any]:
"""
Loads a local YAML file and returns it as a dictionary.
"""

View file

@ -2,6 +2,8 @@ rm -rf ./dist
rm -rf ./camoufox/*.mmdb
rm -rf ./camoufox/*.png
vermin . --eval-annotations --target=3.8 --violations camoufox/ || exit 1
python -m build
twine check dist/*

View file

@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "camoufox"
version = "0.3.5"
version = "0.3.6"
description = "Wrapper around Playwright to help launch Camoufox"
authors = ["daijro <daijro.dev@gmail.com>"]
license = "MIT"