memoize silently drops key func when called directly (non-decorator form)
memoize silently drops key func when called directly (non-decorator form): a task in repo2rlenv-swe-next (Harbor dataset). When calling memoize directly with a function and a custom key func , the key function is silently ignored. This means that if the function takes unhashable arguments (like…
The task
When calling `memoize` directly with a function and a custom `key_func`, the key function is silently ignored. This means that if the function takes unhashable arguments (like lists), a `TypeError` is raised even though the supplied `key_func` is supposed to convert them to a hashable form.
Part of FineEnvs/repo2rlenv-swe-next.