(frame: FrameType, event: str, _arg: Unused)
| 176 | entries: Final[count[int]] = count() |
| 177 | |
| 178 | def interrupt(frame: FrameType, event: str, _arg: Unused) -> None: |
| 179 | # The first entry starts the generator; every later one resumes it. |
| 180 | if event == "call" and frame.f_code is probe.__code__ and next(entries): |
| 181 | raise KeyboardInterrupt |
| 182 | |
| 183 | previous = sys.getprofile() |
| 184 | sys.setprofile(interrupt) |
nothing calls this directly
no outgoing calls
no test coverage detected