MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / _as_list

Function _as_list

analysis/loader.py:363–368  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

361
362
363def _as_list(value: Any) -> list[Any]:
364 if isinstance(value, list):
365 return value
366 if value is None:
367 return []
368 return [value]
369
370
371def _as_dict(value: Any) -> dict[str, Any]:

Callers 2

_normalize_task_resultFunction · 0.85
_normalize_legacy_resultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected