Skip to content

Commit 9b53f4d

Browse files
committed
Remove pasted f-strings to keep mpy-cross happy.
1 parent ac86bc3 commit 9b53f4d

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

grove_vision_ai_v2.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,7 @@ def __init__( # noqa: PLR0913, PLR0917
157157
self.target = target
158158

159159
def __repr__(self) -> str:
160-
return (
161-
f"Box(x={self.x}, y={self.y}, w={self.w}, h={self.h}, "
162-
f"score={self.score}, target={self.target})"
163-
)
160+
return f"Box(x={self.x}, y={self.y}, w={self.w}, h={self.h}, score={self.score}, target={self.target})" # noqa: E501
164161

165162
@property
166163
def left(self) -> float:
@@ -438,14 +435,12 @@ def _fetch_response(self, timeout: float) -> str | None:
438435
print(f"<=(NEW) {response}")
439436
print(
440437
f"[TIMING] _fetch_response: waited {wait_for_first:.1f}ms for first byte, "
441-
f"total {elapsed:.1f}ms, {poll_count} polls, {index} bytes"
438+
+ f"total {elapsed:.1f}ms, {poll_count} polls, {index} bytes"
442439
)
443440
return response
444441
if self.debug:
445-
print(
446-
f"[TIMEOUT] _fetch_response timed out after {(now() - t_start) * 1000:.1f}ms, "
447-
f"{poll_count} polls"
448-
)
442+
duration = (now() - t_start) * 1000
443+
print(f"[TIMEOUT] _fetch_response timed out after {duration:.1f}ms, {poll_count} polls")
449444
return None
450445

451446
def _parse_perf(self, data: dict) -> None:

0 commit comments

Comments
 (0)