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
Fix lint: avoid private import usage for InquirerPy.fuzzy
ShawnPanabdb02ddc6a16
diff --git a/browser_use/init_cmd.py b/browser_use/init_cmd.pyindex 625dcda92..9353d0620 100644--- a/browser_use/init_cmd.py+++ b/browser_use/init_cmd.py@@ -266,12 +266,20 @@ def main(# Separate default and featured templatesdefault_template_names = ['default', 'advanced', 'tools']featured_templates = [(name, info) for name, info in INIT_TEMPLATES.items() if info.get('featured', False)]- other_templates = [(name, info) for name, info in INIT_TEMPLATES.items() if name not in default_template_names and not info.get('featured', False)]+ other_templates = [+ (name, info)+ for name, info in INIT_TEMPLATES.items()+ if name not in default_template_names and not info.get('featured', False)+ ]# Sort by last_modified_date (most recent first)def get_last_modified(item):name, info = item- date_str = info.get('author', {}).get('last_modified_date', '1970-01-01') if isinstance(info.get('author'), dict) else '1970-01-01'+ date_str = (+ info.get('author', {}).get('last_modified_date', '1970-01-01')+ if isinstance(info.get('author'), dict)+ else '1970-01-01'+ )return date_str# Sort default templates by last modified@@ -301,7 +309,9 @@ def main(choices.append(Choice(name=formatted, value=name))# Use fuzzy prompt for search functionality- template = inquirer.fuzzy(+ # Use getattr to avoid static analysis complaining about non-exported names+ _fuzzy = getattr(inquirer, 'fuzzy')+ template = _fuzzy(message='Select a template (type to search):',choices=choices,style=inquirer_style,