Skip to content

Commit 12e1362

Browse files
committed
Fix process status return type annotation
- Fix get_process_status return type: dict[str, Any] | None - Function returns None when pid not found, or dict when found - Corrects semantics from 'dict with nullable values' to 'optional dict' Completes all critical typing issues from PR review comments
1 parent 1ef10d5 commit 12e1362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp_fuzzer/fuzz_engine/runtime/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ async def stop_all_processes(self, force: bool = False) -> None:
201201
tasks = [self.stop_process(pid, force=force) for pid in pids]
202202
await asyncio.gather(*tasks, return_exceptions=True)
203203

204-
async def get_process_status(self, pid: int) -> dict[str, Any | None]:
204+
async def get_process_status(self, pid: int) -> dict[str, Any] | None:
205205
"""Get status information for a specific process."""
206206
async with self._get_lock():
207207
if pid not in self._processes:

0 commit comments

Comments
 (0)