Skip to content

Commit 8bd11c3

Browse files
committed
fix: remove stale pragma no-cover from server send_*_list_changed methods
These methods are now exercised by the new list_changed callback tests, so the strict-no-cover CI check rejects the pragma. Github-Issue: #2107
1 parent 694ec2c commit 8bd11c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mcp/server/session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,15 +474,15 @@ async def send_progress_notification(
474474
related_request_id,
475475
)
476476

477-
async def send_resource_list_changed(self) -> None: # pragma: no cover
477+
async def send_resource_list_changed(self) -> None:
478478
"""Send a resource list changed notification."""
479479
await self.send_notification(types.ResourceListChangedNotification())
480480

481-
async def send_tool_list_changed(self) -> None: # pragma: no cover
481+
async def send_tool_list_changed(self) -> None:
482482
"""Send a tool list changed notification."""
483483
await self.send_notification(types.ToolListChangedNotification())
484484

485-
async def send_prompt_list_changed(self) -> None: # pragma: no cover
485+
async def send_prompt_list_changed(self) -> None:
486486
"""Send a prompt list changed notification."""
487487
await self.send_notification(types.PromptListChangedNotification())
488488

0 commit comments

Comments
 (0)