Proofline

In `proofline/client.py`, `_sleep_with_cancel` patches the condition before its cleanup block.

thekarannagpal/sdk-python#1Reviewed commit 9388498

Warning · Resource lifecycle

If a `threading.Event` subclass overrides `wait()` and makes `set` read-only, hook installation raises before cleanup starts.

Impact

Polling raises and leaves the caller’s condition patched and its deadline retained.

Recommended action

Move `_track_sync_cancel` in `proofline/client.py` inside the existing `try` so partial setup is cleaned up.

Cited code

Checked
Pull request code. The environment was not checked.
Status
Completed
Started
Completed