Skip to content

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

Fix ruff formatting in __init__.py

claude[bot]3183a3ae73d0
diff --git a/browser_use/mcp/__init__.py b/browser_use/mcp/__init__.py
index 0c97fba9d..08c759377 100644
--- a/browser_use/mcp/__init__.py
+++ b/browser_use/mcp/__init__.py
@@ -13,5 +13,6 @@ def __getattr__(name):
"""Lazy import to avoid importing server module when only client is needed."""
if name == 'BrowserUseServer':
from browser_use.mcp.server import BrowserUseServer
+
return BrowserUseServer
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")