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 UltraTerminal (Harbor dataset). Currently the generated source code interpolates the rename key inside hand-written single quotes (e.g. res 'it's' ), which produces invalid…
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/UltraTerminal.