Skip to content

feat: Add RESTful API Serving #1269

feat: Add RESTful API Serving

feat: Add RESTful API Serving #1269

Triggered via pull request July 30, 2025 14:35
@aneeshgarganeeshgarg
synchronize #348
restful
Status Failure
Total duration 54s
Artifacts

linter.yaml

on: pull_request
Lint Code Base
41s
Lint Code Base
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 notices
Lint Code Base
Process completed with exit code 1.
Lint Code Base
7 errors
Lint Code Base: src/a2a/client/rest_client.py#L771
Method "resubscribe" overrides class "Client" in an incompatible manner   Return type mismatch: base method returns type "CoroutineType[Any, Any, AsyncIterator[ClientEvent]]", override returns type "AsyncIterator[ClientEvent]"     "AsyncIterator[ClientEvent]" is not assignable to "CoroutineType[Any, Any, AsyncIterator[ClientEvent]]" (reportIncompatibleMethodOverride)
Lint Code Base: src/a2a/client/rest_client.py#L605
Method "send_message" overrides class "Client" in an incompatible manner   Return type mismatch: base method returns type "CoroutineType[Any, Any, AsyncIterator[ClientEvent | Message]]", override returns type "AsyncIterator[Message | ClientEvent]"     "AsyncIterator[Message | ClientEvent]" is not assignable to "CoroutineType[Any, Any, AsyncIterator[ClientEvent | Message]]" (reportIncompatibleMethodOverride)
Lint Code Base: src/a2a/client/optionals.py#L6
Type "type[grpc.aio.Channel]" is not assignable to declared type "type[a2a.client.optionals.Channel]"   "grpc.aio.Channel" is not assignable to "a2a.client.optionals.Channel"   Type "type[grpc.aio.Channel]" is not assignable to type "type[a2a.client.optionals.Channel]" (reportAssignmentType)
Lint Code Base: src/a2a/client/jsonrpc_client.py#L782
Method "resubscribe" overrides class "Client" in an incompatible manner   Return type mismatch: base method returns type "CoroutineType[Any, Any, AsyncIterator[ClientEvent]]", override returns type "AsyncIterator[ClientEvent]"     "AsyncIterator[ClientEvent]" is not assignable to "CoroutineType[Any, Any, AsyncIterator[ClientEvent]]" (reportIncompatibleMethodOverride)
Lint Code Base: src/a2a/client/jsonrpc_client.py#L588
Method "send_message" overrides class "Client" in an incompatible manner   Return type mismatch: base method returns type "CoroutineType[Any, Any, AsyncIterator[ClientEvent | Message]]", override returns type "AsyncIterator[ClientEvent | Message]"     "AsyncIterator[ClientEvent | Message]" is not assignable to "CoroutineType[Any, Any, AsyncIterator[ClientEvent | Message]]" (reportIncompatibleMethodOverride)
Lint Code Base: src/a2a/client/grpc_client.py#L474
Method "resubscribe" overrides class "Client" in an incompatible manner   Return type mismatch: base method returns type "CoroutineType[Any, Any, AsyncIterator[ClientEvent]]", override returns type "AsyncIterator[ClientEvent]"     "AsyncIterator[ClientEvent]" is not assignable to "CoroutineType[Any, Any, AsyncIterator[ClientEvent]]" (reportIncompatibleMethodOverride)
Lint Code Base: src/a2a/client/grpc_client.py#L312
Method "send_message" overrides class "Client" in an incompatible manner   Return type mismatch: base method returns type "CoroutineType[Any, Any, AsyncIterator[ClientEvent | Message]]", override returns type "AsyncIterator[ClientEvent | Message]"     "AsyncIterator[ClientEvent | Message]" is not assignable to "CoroutineType[Any, Any, AsyncIterator[ClientEvent | Message]]" (reportIncompatibleMethodOverride)
Lint Code Base
Process completed with exit code 1.
Copy/pasted code: src/a2a/client/rest_client.py#L89
see src/a2a/client/jsonrpc_client.py (106-115)
Copy/pasted code: src/a2a/client/jsonrpc_client.py#L106
see src/a2a/client/rest_client.py (89-97)
Copy/pasted code: src/a2a/client/rest_client.py#L43
see src/a2a/client/jsonrpc_client.py (61-91)
Copy/pasted code: src/a2a/client/jsonrpc_client.py#L61
see src/a2a/client/rest_client.py (43-72)
Copy/pasted code: src/a2a/client/rest_client.py#L198
see src/a2a/client/rest_client.py (496-517)
Copy/pasted code: src/a2a/client/rest_client.py#L496
see src/a2a/client/rest_client.py (198-219)
Copy/pasted code: src/a2a/client/rest_client.py#L243
see src/a2a/client/rest_client.py (281-295)
Copy/pasted code: src/a2a/client/rest_client.py#L281
see src/a2a/client/rest_client.py (243-257)
Copy/pasted code: src/a2a/client/rest_client.py#L122
see src/a2a/client/rest_client.py (174-193)
Copy/pasted code: src/a2a/client/rest_client.py#L174
see src/a2a/client/rest_client.py (122-140)