MCPcopy Create free account
hub / github.com/ResearAI/DeepReviewer-v2 / _parse_int

Function _parse_int

pasa/pasa_server.py:384–389  ·  view source on GitHub ↗
(data: Dict[str, Any], key: str, default: int)

Source from the content-addressed store, hash-verified

382
383
384def _parse_int(data: Dict[str, Any], key: str, default: int) -> int:
385 value = data.get(key, default)
386 try:
387 return int(value)
388 except (TypeError, ValueError):
389 raise ValueError(f"Invalid parameter: {key}")
390
391
392def _parse_search_params(data: Dict[str, Any]) -> Dict[str, Any]:

Callers 1

_parse_search_paramsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected