Skip to content

feat(server): implement Resource Scoping for tasks and push notifications #2365

feat(server): implement Resource Scoping for tasks and push notifications

feat(server): implement Resource Scoping for tasks and push notifications #2365

Triggered via pull request February 19, 2026 10:55
Status Failure
Total duration 51s
Artifacts

linter.yaml

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

Annotations

18 errors, 1 warning, and 5 notices
Lint Code Base
Process completed with exit code 1.
Lint Code Base
4 errors
Lint Code Base: src/a2a/server/tasks/inmemory_push_notification_config_store.py#L49
Method "delete_info" overrides class "PushNotificationConfigStore" in an incompatible manner   Positional parameter count mismatch; base method has 4, but override has 3   Parameter 4 mismatch: base parameter "context" is keyword parameter, override parameter is position-only (reportIncompatibleMethodOverride)
Lint Code Base: src/a2a/server/tasks/inmemory_push_notification_config_store.py#L44
Method "get_info" overrides class "PushNotificationConfigStore" in an incompatible manner   Positional parameter count mismatch; base method has 3, but override has 2   Parameter 3 mismatch: base parameter "context" is keyword parameter, override parameter is position-only (reportIncompatibleMethodOverride)
Lint Code Base: src/a2a/server/tasks/inmemory_push_notification_config_store.py#L26
Method "set_info" overrides class "PushNotificationConfigStore" in an incompatible manner   Positional parameter count mismatch; base method has 4, but override has 3   Parameter 4 mismatch: base parameter "context" is keyword parameter, override parameter is position-only (reportIncompatibleMethodOverride)
Lint Code Base: src/a2a/server/models.py#L178
Argument of type "(cls: type[Self@TaskMixin]) -> tuple[Any, ...]" cannot be assigned to parameter "fn" of type "_DeclaredAttrDecorated[_T@declared_attr]" in function "__init__"   Type "(cls: type[Self@TaskMixin]) -> tuple[Any, ...]" is not assignable to type "_DeclaredAttrDecorated[_T@declared_attr]"     Function return type "tuple[Any, ...]" is incompatible with type "Mapped[_T@declared_attr] | ORMDescriptor[_T@declared_attr] | SQLCoreOperations[_T@declared_attr]"       Type "tuple[Any, ...]" is not assignable to type "Mapped[_T@declared_attr] | ORMDescriptor[_T@declared_attr] | SQLCoreOperations[_T@declared_attr]"         "tuple[Any, ...]" is not assignable to "Mapped[_T@declared_attr]"         "tuple[Any, ...]" is not assignable to "ORMDescriptor[_T@declared_attr]"         "tuple[Any, ...]" is not assignable to "SQLCoreOperations[_T@declared_attr]" (reportArgumentType)
Lint Code Base
Process completed with exit code 1.
Lint Code Base
Process completed with exit code 1.
ruff (D415): alembic/versions/6419d2d130f6_add_owner_to_task.py#L1
alembic/versions/6419d2d130f6_add_owner_to_task.py:1:1: D415 First line should end with a period, question mark, or exclamation point
ruff (INP001): alembic/versions/6419d2d130f6_add_owner_to_task.py#L1
alembic/versions/6419d2d130f6_add_owner_to_task.py:1:1: INP001 File `alembic/versions/6419d2d130f6_add_owner_to_task.py` is part of an implicit namespace package. Add an `__init__.py`.
ruff (ANN201): alembic/env.py#L77
alembic/env.py:77:5: ANN201 Missing return type annotation for public function `run_migrations_online`
ruff (D205): alembic/env.py#L62
alembic/env.py:62:5: D205 1 blank line required between summary line and description
ruff (ANN201): alembic/env.py#L61
alembic/env.py:61:11: ANN201 Missing return type annotation for public function `run_async_migrations`
ruff (ANN001): alembic/env.py#L54
alembic/env.py:54:23: ANN001 Missing type annotation for function argument `connection`
ruff (D103): alembic/env.py#L54
alembic/env.py:54:5: D103 Missing docstring in public function
ruff (ANN201): alembic/env.py#L54
alembic/env.py:54:5: ANN201 Missing return type annotation for public function `do_run_migrations`
ruff (ERA001): alembic/env.py#L26
alembic/env.py:26:1: ERA001 Found commented-out code
ruff (INP001): alembic/env.py#L1
alembic/env.py:1:1: INP001 File `alembic/env.py` is part of an implicit namespace package. Add an `__init__.py`.
Lint Code Base
No github_token supplied, API requests will be subject to stricter rate limiting
Lint Code Base
repository contains 47 duplications. 4 duplications were part of this PR and were annotated
Copy/pasted code: src/a2a/server/tasks/inmemory_task_store.py#L62
see src/a2a/server/tasks/database_task_store.py (191-208)
Copy/pasted code: src/a2a/server/tasks/database_task_store.py#L191
see src/a2a/server/tasks/inmemory_task_store.py (62-78)
Copy/pasted code: src/a2a/server/tasks/inmemory_task_store.py#L7
see src/a2a/server/tasks/database_task_store.py (37-48)
Copy/pasted code: src/a2a/server/tasks/database_task_store.py#L37
see src/a2a/server/tasks/inmemory_task_store.py (7-18)