Skip to content

Commit 380e2c3

Browse files
aksheydihrpr
andauthored
set default for message in progress() method
Co-authored-by: ihrpr <[email protected]>
1 parent aa92533 commit 380e2c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/shared/progress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ProgressContext(
4444
current: float = field(default=0.0, init=False)
4545
message: str | None
4646

47-
async def progress(self, amount: float) -> None:
47+
async def progress(self, amount: float, message: str | None = None) -> None:
4848
self.current += amount
4949

5050
await self.session.send_progress_notification(

0 commit comments

Comments
 (0)