Skip to content

Commit 5b05223

Browse files
committed
lint
1 parent f86ddcb commit 5b05223

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stagehand/agent/image_compression_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from typing import List, Dict, Any, Union
1+
from typing import Any
22

33

4-
def find_items_with_images(items: List[Dict[str, Any]]) -> List[int]:
4+
def find_items_with_images(items: list[dict[str, Any]]) -> list[int]:
55
"""
66
Finds all items in the conversation history that contain images
77
@@ -37,8 +37,8 @@ def find_items_with_images(items: List[Dict[str, Any]]) -> List[int]:
3737

3838

3939
def compress_conversation_images(
40-
items: List[Dict[str, Any]], keep_most_recent_count: int = 2
41-
) -> Dict[str, List[Dict[str, Any]]]:
40+
items: list[dict[str, Any]], keep_most_recent_count: int = 2
41+
) -> dict[str, list[dict[str, Any]]]:
4242
"""
4343
Compresses conversation history by removing images from older items
4444
while keeping the most recent images intact

0 commit comments

Comments
 (0)