Fix signature for generic structure hooks
Fix signature for generic structure hooks

A generic structure hook is expected to return a value of the type that it accepts as an argument.

python-attrs/cattrs,Tinche/cattrs