(text: str)
| 377 | |
| 378 | |
| 379 | def _parse_json_or_none(text: str) -> Optional[Dict[str, Any]]: |
| 380 | try: |
| 381 | parsed = json.loads(text) |
| 382 | return parsed if isinstance(parsed, dict) else None |
| 383 | except Exception: |
| 384 | return None |
| 385 | |
| 386 | |
| 387 | @dataclass(frozen=True) |
no outgoing calls
no test coverage detected