MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / _as_string_list

Function _as_string_list

scripts/common.py:1314–1319  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

1312
1313
1314def _as_string_list(value: Any) -> list[str]:
1315 if isinstance(value, list):
1316 return [str(item).strip() for item in value if str(item).strip()]
1317 if isinstance(value, str) and value.strip():
1318 return [value.strip()]
1319 return []
1320
1321
1322def _normalize_domain_rule(raw: dict[str, Any]) -> dict[str, Any] | None:

Callers 4

_normalize_domain_ruleFunction · 0.85
_domain_match_termsFunction · 0.85
domain_name_scoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected