(errors: list[dict])
| 48 | |
| 49 | |
| 50 | def errors_to_tree(errors: list[dict]) -> dict: |
| 51 | tree = {} |
| 52 | for error in errors: |
| 53 | _errors_to_tree(tree, loc=merge_index_loc(error["loc"]), error=error) |
| 54 | return tree |
| 55 | |
| 56 | |
| 57 | def _enrich_tree(rich_tree: Tree, tree: dict): |
no test coverage detected