Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
fixed types
Gregor Žuničcda43e9573b0
diff --git a/browser_use/controller/registry/service.py b/browser_use/controller/registry/service.pyindex 96c6db9dd..6680312fd 100644--- a/browser_use/controller/registry/service.py+++ b/browser_use/controller/registry/service.py@@ -535,7 +535,7 @@ class Registry(Generic[Context]):# Create a Union type using RootModel that properly delegates ActionModel methodsunion_type = Union[tuple(individual_action_models)] # type: ignore : Typing doesn't understand that the length is >= 2 (by design)- class ActionModelUnion(RootModel[union_type]):+ class ActionModelUnion(RootModel[union_type]): # type: ignore"""Union of all available action models that maintains ActionModel interface"""def get_index(self) -> int | None:diff --git a/pyproject.toml b/pyproject.tomlindex 9a0c9d413..94c8e5707 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -181,5 +181,6 @@ dev-dependencies = ["pyright>=1.1.399","ty>=0.0.1a1","pytest-xdist>=3.7.0",+ "pillow>=11.2.1",# "pytest-playwright-asyncio>=0.7.0", # not actually needed I think]