MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _string_list

Function _string_list

deployments/desktop/shared/agents.py:168–181  ·  view source on GitHub ↗
(values: Any)

Source from the content-addressed store, hash-verified

166 return result
167
168
169def _string_list(values: Any) -> List[str]:
170 if values is None:
171 return []
172 if isinstance(values, str):
173 values = [values]
174 result: List[str] = []
175 seen: Set[str] = set()
176 for value in values or []:
177 text = str(value or "").strip()
178 if not text or text in seen:
179 continue
180 seen.add(text)
181 result.append(text)
182 return result
183
184

Callers 4

_normalized_cache_listFunction · 0.85
_parse_weight_textFunction · 0.85
_manual_profile_updatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected