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

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