(
o: object, seen: dict[int, object], parents: dict[int, tuple[int, object]]
)
| 90 | |
| 91 | |
| 92 | def get_path( |
| 93 | o: object, seen: dict[int, object], parents: dict[int, tuple[int, object]] |
| 94 | ) -> list[tuple[object, object]]: |
| 95 | path = [] |
| 96 | while id(o) in parents: |
| 97 | pid, attr = parents[id(o)] |
| 98 | o = seen[pid] |
| 99 | path.append((attr, o)) |
| 100 | path.reverse() |
| 101 | return path |
no test coverage detected
searching dependent graphs…