pythonlib: Add dict expected type 0.2.15

Adds support for beta.12.
This commit is contained in:
daijro 2024-10-15 06:56:31 -05:00
parent ad3b3f04fe
commit 216718845c
3 changed files with 7 additions and 5 deletions

View file

@ -48,9 +48,9 @@ screen:
# clientWidth: document.body.clientWidth # clientWidth: document.body.clientWidth
# clientHeight: document.body.clientHeight # clientHeight: document.body.clientHeight
videoCard: # videoCard:
renderer: webGl:renderer # renderer: webgl:renderer
vendor: webGl:vendor # vendor: webgl:vendor
headers: headers:
# headers.User-Agent is redundant with navigator.userAgent # headers.User-Agent is redundant with navigator.userAgent

View file

@ -122,6 +122,8 @@ def validate_type(value: Any, expected_type: str) -> bool:
return isinstance(value, bool) return isinstance(value, bool)
elif expected_type == "array": elif expected_type == "array":
return isinstance(value, list) return isinstance(value, list)
elif expected_type == "dict":
return isinstance(value, dict)
else: else:
return False return False

View file

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