Skip to content

Commit d17b08c

Browse files
author
SentienceDEV
committed
linting
1 parent bd9110b commit d17b08c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

sentience/vision_executor.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from dataclasses import dataclass
55
from typing import Any, Literal
66

7-
87
VisionActionKind = Literal["click_xy", "click_rect", "press", "type", "finish"]
98

109

@@ -45,7 +44,12 @@ def parse_vision_executor_action(text: str) -> VisionExecutorAction:
4544
):
4645
return VisionExecutorAction(
4746
"click_rect",
48-
{"x": float(m.group(1)), "y": float(m.group(2)), "w": float(m.group(3)), "h": float(m.group(4))},
47+
{
48+
"x": float(m.group(1)),
49+
"y": float(m.group(2)),
50+
"w": float(m.group(3)),
51+
"h": float(m.group(4)),
52+
},
4953
)
5054
raise ValueError(f"unrecognized vision action: {t[:200]}")
5155

@@ -78,4 +82,3 @@ async def execute_vision_executor_action(
7882
if action.kind == "finish":
7983
return
8084
raise ValueError(f"unknown vision action kind: {action.kind}")
81-

0 commit comments

Comments
 (0)