Skip to content
This repository was archived by the owner on Mar 21, 2026. It is now read-only.

Commit 8b368fa

Browse files
author
b
committed
Use logger for deprecated tool warning
1 parent 364de6f commit 8b368fa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ralphython.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
import sys
1717
import time
1818
from pathlib import Path
19+
from typing import Any
1920

2021
from fastmcp import FastMCP
2122

2223
# Initialize FastMCP server
2324
mcp = FastMCP("Ralph Wiggum 🎯")
2425

25-
2626
logging.basicConfig(level=logging.INFO, format="%(message)s")
2727
LOGGER = logging.getLogger("ralph")
2828

2929

30-
def _warn_tool_deprecated():
30+
def _warn_tool_deprecated() -> None:
3131
LOGGER.warning("⚠️ Warning: --tool is deprecated, use --agent instead")
3232

3333

@@ -277,7 +277,7 @@ def run_ralph_iteration(
277277

278278

279279
@mcp.tool()
280-
def get_ralph_status() -> dict[str, any]:
280+
def get_ralph_status() -> dict[str, Any]:
281281
"""
282282
Get current Ralph execution status from progress.txt.
283283
@@ -302,7 +302,7 @@ def get_ralph_status() -> dict[str, any]:
302302

303303

304304
@mcp.tool()
305-
def get_prd_status(prd_path: str | None = None) -> dict[str, any]:
305+
def get_prd_status(prd_path: str | None = None) -> dict[str, Any]:
306306
"""
307307
Get PRD completion status.
308308

0 commit comments

Comments
 (0)