(value: str)
| 279 | |
| 280 | |
| 281 | def interpret_value(value: str) -> Any: |
| 282 | try: |
| 283 | return ast.literal_eval(value) |
| 284 | except (SyntaxError, ValueError): |
| 285 | pass |
| 286 | |
| 287 | # Avoid confusion of YAML vs. Python syntax |
| 288 | hardcoded_map = {"none": None, "null": None, "false": False, "true": True} |
| 289 | return hardcoded_map.get(value.lower(), value) |
| 290 | |
| 291 | |
| 292 | def paths_containing_key( |