Skip to content

Commit d5d1332

Browse files
committed
reformat
1 parent f89c339 commit d5d1332

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/a2a/server/request_handlers/default_request_handler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,10 @@ async def push_notification_callback() -> None:
346346

347347
if isinstance(result, Task):
348348
self._validate_task_id_match(task_id, result.id)
349-
if params.configuration and params.configuration.history_length is not None:
349+
if (
350+
params.configuration
351+
and params.configuration.history_length is not None
352+
):
350353
result = apply_history_length(
351354
result, params.configuration.history_length
352355
)

tests/server/request_handlers/test_default_request_handler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,7 @@ async def test_on_message_send_limit_history():
874874
assert task is not None
875875
assert task.history is not None and len(task.history) > 0
876876

877+
877878
@pytest.mark.asyncio
878879
async def test_on_message_send_limit_history_non_as_no_limit():
879880
task_store = InMemoryTaskStore()
@@ -893,7 +894,7 @@ async def test_on_message_send_limit_history_non_as_no_limit():
893894
configuration=MessageSendConfiguration(
894895
blocking=True,
895896
accepted_output_modes=['text/plain'],
896-
history_length=None
897+
history_length=None,
897898
),
898899
)
899900

0 commit comments

Comments
 (0)