Skip to content

feat(server): add v0.3 legacy compatibility for database models #2717

feat(server): add v0.3 legacy compatibility for database models

feat(server): add v0.3 legacy compatibility for database models #2717

Triggered via pull request March 10, 2026 17:05
Status Failure
Total duration 54s
Artifacts

linter.yaml

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

Annotations

5 errors, 1 warning, and 2 notices
Lint Code Base
Process completed with exit code 1.
Lint Code Base
3 errors
Lint Code Base: src/a2a/server/tasks/database_task_store.py#L176
Argument of type "list[dict[str, Any]] | list[Message]" cannot be assigned to parameter "history" of type "list[Message] | None" in function "__init__"   Type "list[dict[str, Any]] | list[Message]" is not assignable to type "list[Message] | None"     Type "list[dict[str, Any]]" is not assignable to type "list[Message] | None"       "list[dict[str, Any]]" is not assignable to "list[Message]"         Type parameter "_T@list" is invariant, but "dict[str, Any]" is not the same as "Message"         Consider switching from "list" to "Sequence" which is covariant       "list[dict[str, Any]]" is not assignable to "None" (reportArgumentType)
Lint Code Base: src/a2a/server/tasks/database_task_store.py#L175
Argument of type "list[dict[str, Any]] | list[Artifact]" cannot be assigned to parameter "artifacts" of type "list[Artifact] | None" in function "__init__"   Type "list[dict[str, Any]] | list[Artifact]" is not assignable to type "list[Artifact] | None"     Type "list[dict[str, Any]]" is not assignable to type "list[Artifact] | None"       "list[dict[str, Any]]" is not assignable to "list[Artifact]"         Type parameter "_T@list" is invariant, but "dict[str, Any]" is not the same as "Artifact"         Consider switching from "list" to "Sequence" which is covariant       "list[dict[str, Any]]" is not assignable to "None" (reportArgumentType)
Lint Code Base: src/a2a/server/tasks/database_task_store.py#L174
Argument of type "dict[str, Any] | None" cannot be assigned to parameter "status" of type "TaskStatus" in function "__init__"   Type "dict[str, Any] | None" is not assignable to type "TaskStatus"     "dict[str, Any]" is not assignable to "TaskStatus" (reportArgumentType)
Lint Code Base
No github_token supplied, API requests will be subject to stricter rate limiting
Lint Code Base
repository contains 54 duplications. 1 duplications were part of this PR and were annotated
Copy/pasted code: src/a2a/server/tasks/database_task_store.py#L40
see src/a2a/server/tasks/inmemory_task_store.py (5-16)