@cache decorator's invalidate() raises KeyError when called twice on the same argument
@cache decorator's invalidate() raises KeyError when called twice on the same argument: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When using the @cache decorator from funcy , calling .invalidate() on a cached function with the same argument more than once raises a KeyError . The…
The task
When using the `@cache` decorator from `funcy`, calling `.invalidate()` on a cached function with the same argument more than once raises a `KeyError`. The `invalidate()` method should be idempotent — calling it multiple times with the same argument should be safe and should not raise an error.
Part of FineEnvs/repo2rlenv-r2e-gym.