Skip to content

Commit aa7355e

Browse files
fix ruff format
1 parent bb5b69a commit aa7355e

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎src/askui/models/shared/truncation_strategies.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,7 @@ def _enforce_byte_budget(self) -> int | None:
549549
logger.info(info_msg)
550550
self._report(info_msg)
551551
self._report(
552-
f"[byte budget] done: new size={new_size} bytes, "
553-
f"boundary index={boundary}"
552+
f"[byte budget] done: new size={new_size} bytes, boundary index={boundary}"
554553
)
555554
return boundary
556555

‎tests/unit/models/test_truncation_strategies.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,8 @@ def test_summarizing_strategy_reports_summary_response(self) -> None:
942942
# Byte-budget debug messages (plain strings) may also be reported;
943943
# the summary response is the one dict payload.
944944
summary_calls = [
945-
c for c in reporter.add_message.call_args_list
945+
c
946+
for c in reporter.add_message.call_args_list
946947
if isinstance(c.args[1], dict)
947948
]
948949
assert len(summary_calls) == 1
@@ -967,7 +968,8 @@ def test_sliding_strategy_reports_summary_response(self) -> None:
967968
# Byte-budget debug messages (plain strings) may also be reported;
968969
# the summary response is the one dict payload.
969970
summary_calls = [
970-
c for c in reporter.add_message.call_args_list
971+
c
972+
for c in reporter.add_message.call_args_list
971973
if isinstance(c.args[1], dict)
972974
]
973975
assert len(summary_calls) == 1

0 commit comments

Comments
 (0)