In cattrs , when generating structure/unstructure hooks with make dict structure fn / make dict unstructure…
In cattrs , when generating structure/unstructure hooks with make dict structure fn / make dict unstructure…: a task in harness-adapters: Agentic coding environments (Harbor dataset). Currently the generated source code interpolates the rename key inside hand-written single quotes (e.g. res 'it's'…
The task
Currently the generated source code interpolates the rename key inside hand-written single quotes (e.g. `res['it's']`), which produces invalid Python when the key contains a quote or other unsafe characters, causing a `SyntaxError` at hook-registration time.
Part of harness-hub/harness-adapters.