Skip to content

Commit 98e9fe1

Browse files
committed
Lint errors
1 parent 1fa0ec7 commit 98e9fe1

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

src/a2a/client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from abc import ABC, abstractmethod
66
from collections.abc import AsyncIterator, Callable, Coroutine
7-
from typing import Any
7+
from typing import TYPE_CHECKING, Any
88

99
import httpx
1010

src/a2a/client/jsonrpc_client.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@
99

1010
from httpx_sse import SSEError, aconnect_sse
1111

12-
from a2a.client.client import A2ACardResolver, Client, ClientConfig, Consumer
12+
from a2a.client import A2AClient
13+
from a2a.client.client import (
14+
A2ACardResolver,
15+
Client,
16+
ClientConfig,
17+
Consumer,
18+
)
1319
from a2a.client.client_task_manager import ClientTaskManager
1420
from a2a.client.errors import (
1521
A2AClientHTTPError,

src/a2a/client/rest_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
AgentCard,
1919
GetTaskPushNotificationConfigParams,
2020
Message,
21+
MessageSendConfiguration,
2122
MessageSendParams,
2223
Task,
2324
TaskArtifactUpdateEvent,
@@ -316,8 +317,8 @@ async def get_task(
316317
)
317318
response_data = await self._send_get_request(
318319
f'/v1/tasks/{request.taskId}',
319-
{'historyLength': request.historyLength}
320-
if request.historyLength
320+
{'historyLength': request.history_length}
321+
if request.history_length
321322
else {},
322323
modified_kwargs,
323324
)

src/a2a/server/request_handlers/rest_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ async def on_get_task(
292292
try:
293293
task_id = request.path_params['id']
294294
history_length = request.query_params.get('historyLength', None)
295-
if historyLength:
295+
if history_length:
296296
history_length = int(history_length)
297297
params = TaskQueryParams(id=task_id, history_length=history_length)
298298
task = await self.request_handler.on_get_task(params, context)

0 commit comments

Comments
 (0)