Skip to content

Commit 84891b9

Browse files
committed
ruff fix
1 parent 476b885 commit 84891b9

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

examples/agent_example.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
from rich.panel import Panel
88
from rich.theme import Theme
99

10-
from stagehand import Stagehand, StagehandConfig, AgentConfig, configure_logging
11-
from stagehand.schemas import AgentExecuteOptions, AgentProvider
10+
from stagehand import Stagehand, StagehandConfig, configure_logging
1211

1312
# Create a custom theme for consistent styling
1413
custom_theme = Theme(

examples/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import asyncio
22
import logging
33
import os
4+
5+
from dotenv import load_dotenv
46
from rich.console import Console
57
from rich.panel import Panel
68
from rich.theme import Theme
7-
import json
8-
from dotenv import load_dotenv
99

1010
from stagehand import Stagehand, StagehandConfig
1111
from stagehand.utils import configure_logging

examples/quickstart.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import asyncio
22
import os
3+
34
from dotenv import load_dotenv
45
from pydantic import BaseModel, Field
56

6-
from stagehand import StagehandConfig, Stagehand
7+
from stagehand import Stagehand, StagehandConfig
78

89
# Load environment variables
910
load_dotenv()

stagehand/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Stagehand - The AI Browser Automation Framework"""
22

3+
from importlib.metadata import version as get_version
4+
35
from .agent import Agent
46
from .config import StagehandConfig, default_config
57
from .handlers.observe_handler import ObserveHandler
@@ -20,7 +22,6 @@
2022
ObserveOptions,
2123
ObserveResult,
2224
)
23-
from importlib.metadata import version as get_version
2425

2526
__version__ = get_version("stagehand")
2627

0 commit comments

Comments
 (0)