(args: str)
| 151 | return parts |
| 152 | |
| 153 | def _parse_specifiers(args: str) -> dict: |
| 154 | result = {} |
| 155 | for token in _split_specifiers(args.strip()): |
| 156 | token = token.strip() |
| 157 | if not token: |
| 158 | continue |
| 159 | if '=' in token: |
| 160 | k, _, v = token.partition('=') |
| 161 | result[k.strip()] = v.strip().strip('"').strip("'") |
| 162 | else: |
| 163 | result[token] = True |
| 164 | return result |
| 165 | |
| 166 | def _extract_meta_value(specs: dict, key: str, default="") -> str: |
| 167 | """Extract a value from the meta=(...) string inside specifiers.""" |
no test coverage detected