(values: Any)
| 166 | |
| 167 | |
| 168 | def _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 | |
| 184 | def _paper_metadata(paper: Dict[str, Any]) -> Dict[str, Any]: |
no outgoing calls
no test coverage detected