(venv: str)
| 35 | |
| 36 | |
| 37 | def _read_state(venv: str) -> object | None: |
| 38 | filename = _state_filename_v1(venv) |
| 39 | if not os.path.exists(filename): |
| 40 | return None |
| 41 | else: |
| 42 | with open(filename) as f: |
| 43 | return json.load(f) |
| 44 | |
| 45 | |
| 46 | def _hook_installed(hook: Hook) -> bool: |
no test coverage detected