Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

imports

Nick Sweeting0af8c8c0fee8
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index f40a3f33e..43a878378 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -39,5 +39,5 @@ jobs:
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- - run: uv sync --dev --all-extras
+ - run: uv sync --dev --all-extras # install extras for examples to avoid pyright missing imports errors
- run: uv run pyright
diff --git a/browser_use/cli.py b/browser_use/cli.py
index e546e74ec..dfc5c1775 100644
--- a/browser_use/cli.py
+++ b/browser_use/cli.py
@@ -1,3 +1,4 @@
+# pyright: reportMissingImports=false
import asyncio
import json
import logging
diff --git a/eval/service.py b/eval/service.py
index 1789067e4..cbf59b2ec 100644
--- a/eval/service.py
+++ b/eval/service.py
@@ -1,3 +1,4 @@
+# pyright: reportMissingImports=false
# ==============================================================================================================
# Documentation for this evaluation file.
diff --git a/examples/browser/stealth.py b/examples/browser/stealth.py
index 27a874fed..7b57a5186 100644
--- a/examples/browser/stealth.py
+++ b/examples/browser/stealth.py
@@ -1,3 +1,4 @@
+# pyright: reportMissingImports=false
import asyncio
import os
import shutil
diff --git a/examples/models/bedrock_claude.py b/examples/models/bedrock_claude.py
index 15a0869e6..2e5ef44f7 100644
--- a/examples/models/bedrock_claude.py
+++ b/examples/models/bedrock_claude.py
@@ -1,3 +1,4 @@
+# pyright: reportMissingImports=false
"""
Automated news analysis and sentiment scoring using Bedrock.
diff --git a/examples/ui/gradio_demo.py b/examples/ui/gradio_demo.py
index d68c6416d..635f3f4ee 100644
--- a/examples/ui/gradio_demo.py
+++ b/examples/ui/gradio_demo.py
@@ -1,3 +1,4 @@
+# pyright: reportMissingImports=false
import asyncio
import os
import sys