Add path context to any errors.
(path: str)
| 140 | |
| 141 | @contextmanager |
| 142 | def add_path_context_to_errors(path: str): |
| 143 | """Add path context to any errors.""" |
| 144 | try: |
| 145 | yield |
| 146 | except Exception as e: |
| 147 | e.add_note(f"Raised whilst mapping function over node(s) with path {path!r}") |
| 148 | raise |
| 149 | |
| 150 | |
| 151 | def _check_single_set_return_values(path_to_node: str, obj: Any) -> int | None: |
no outgoing calls
no test coverage detected
searching dependent graphs…