(items: Iterable[str])
| 112 | |
| 113 | |
| 114 | def metadata_dict(items: Iterable[str]) -> Dict[str, str]: |
| 115 | parsed: Dict[str, str] = {} |
| 116 | for item in items: |
| 117 | if "=" not in item: |
| 118 | parsed[item] = "" |
| 119 | continue |
| 120 | key, value = item.split("=", 1) |
| 121 | parsed[key.strip()] = value.strip() |
| 122 | return parsed |
| 123 | |
| 124 | |
| 125 | def extract_text(result: Any) -> str: |
no outgoing calls
no test coverage detected
searching dependent graphs…