| 82 | |
| 83 | |
| 84 | class AvoidRecursiveCacheCall(object): |
| 85 | def __init__(self, graph) -> None: |
| 86 | self._g = graph |
| 87 | self._prev_flag = self._g._run_with_cache |
| 88 | |
| 89 | def __enter__(self): |
| 90 | self._g._run_with_cache = False |
| 91 | |
| 92 | def __exit__(self, exc_type, exc_val, exc_tb): |
| 93 | self._g._run_with_cache = self._prev_flag |
| 94 | |
| 95 | |
| 96 | class GraphCache(object): |
no outgoing calls
no test coverage detected