The Cache. init () method in the cachetools library does not validate the maxsize argument. Negative values…
The Cache. init () method in the cachetools library does not validate the maxsize argument. Negative values…: a task in repo2rlenv-swe-gen (Harbor dataset). Worse, when using the @cached or @cachedmethod decorators, the ValueError from setitem is silently swallowed, so a negative maxsize turns…
The task
Worse, when using the `@cached` or `@cachedmethod` decorators, the `ValueError` from `__setitem__` is silently swallowed, so a negative `maxsize` turns memoization off with no error or warning:
Part of FineEnvs/repo2rlenv-swe-gen.