Closed ritik-kansal closed 4 months ago
The issue is that wrapper
does not have the func
metadata, particularly its annotations. functools.update_wrapper provides this feature.
return update_wrapper(wrapper, func)
Thanks @coady, that solved the issue.
Question
is there a way to apply separate, decorators for separate signatures, without using
register
, because with register i need to create a default function with@multimethod
.Code
Output
Code
This works fine but dont want to have the default implementation of add