Skip to content

Commit 60d2bac

Browse files
committed
fix: remove _is_cancellation_notification as there are the correct types defined
1 parent 2fcc61f commit 60d2bac

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/mcp/shared/session.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,6 @@ async def _send_response(
289289
)
290290
await self._write_stream.send(JSONRPCMessage(jsonrpc_response))
291291

292-
def _is_cancellation_notification(self, message_root: JSONRPCNotification) -> bool:
293-
"""
294-
Determines if a notification is a cancellation notification.
295-
"""
296-
return getattr(message_root, "method", None) == "notifications/cancelled"
297-
298292
async def _receive_loop(self) -> None:
299293
async with (
300294
self._read_stream,

0 commit comments

Comments
 (0)