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