Skip to content

Commit 7130dd7

Browse files
committed
Fix mypy errors
1 parent 01fe307 commit 7130dd7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.mypy.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[mypy]
2-
disable_error_code = import-not-found,annotation-unchecked
2+
exclude = src/a2a/grpc/
3+
disable_error_code = import-not-found,annotation-unchecked,import-untyped
34

45
[mypy-examples.*]
56
follow_imports = skip

src/a2a/server/request_handlers/request_handler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from a2a.server.context import ServerCallContext
55
from a2a.server.events.event_queue import Event
66
from a2a.types import (
7+
GetTaskPushNotificationConfigParams,
78
Message,
89
MessageSendParams,
910
Task,
@@ -122,7 +123,7 @@ async def on_set_task_push_notification_config(
122123
@abstractmethod
123124
async def on_get_task_push_notification_config(
124125
self,
125-
params: TaskIdParams,
126+
params: TaskIdParams | GetTaskPushNotificationConfigParams,
126127
context: ServerCallContext | None = None,
127128
) -> TaskPushNotificationConfig:
128129
"""Handles the 'tasks/pushNotificationConfig/get' method.

0 commit comments

Comments
 (0)