Skip to content

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

Linter

Magnus Müller1f35dc3c84ed
diff --git a/browser_use/code_use/namespace.py b/browser_use/code_use/namespace.py
index 58bc1784b..c0e9bb130 100644
--- a/browser_use/code_use/namespace.py
+++ b/browser_use/code_use/namespace.py
@@ -24,42 +24,42 @@ logger = logging.getLogger(__name__)
# Try to import optional data science libraries
try:
- import numpy as np # type: ignore
+ import numpy as np # type: ignore
NUMPY_AVAILABLE = True
except ImportError:
NUMPY_AVAILABLE = False
try:
- import pandas as pd # type: ignore
+ import pandas as pd # type: ignore
PANDAS_AVAILABLE = True
except ImportError:
PANDAS_AVAILABLE = False
try:
- import matplotlib.pyplot as plt # type: ignore
+ import matplotlib.pyplot as plt # type: ignore
MATPLOTLIB_AVAILABLE = True
except ImportError:
MATPLOTLIB_AVAILABLE = False
try:
- from bs4 import BeautifulSoup # type: ignore
+ from bs4 import BeautifulSoup # type: ignore
BS4_AVAILABLE = True
except ImportError:
BS4_AVAILABLE = False
try:
- from pypdf import PdfReader # type: ignore
+ from pypdf import PdfReader # type: ignore
PYPDF_AVAILABLE = True
except ImportError:
PYPDF_AVAILABLE = False
try:
- from tabulate import tabulate # type: ignore
+ from tabulate import tabulate # type: ignore
TABULATE_AVAILABLE = True
except ImportError: