()
| 97 | calls: Final[count[int]] = count(1) |
| 98 | |
| 99 | def interrupt() -> None: # pragma: no cover # runs inside the profile hook, which coverage does not trace |
| 100 | if next(calls) == target: |
| 101 | raise KeyboardInterrupt |
| 102 | |
| 103 | sys.setprofile(_interrupt_hook(lock, callee, interrupt)) |
| 104 | try: |
nothing calls this directly
no outgoing calls
no test coverage detected