bmcfee / presets

A python module to manipulate default parameters of a module's functions
ISC License
3 stars 1 forks source link

Fix decorator call signatures #3

Closed bmcfee closed 7 years ago

bmcfee commented 8 years ago

Currently, the function decorator fails to preserve the docstring and call signature of the wrapped function.

While full call signature preservation is impossible with dynamically adapting default parameters, we could at least trap and modify the docstring so as to not be completely opaque.

The decorator package should be useful here.

bmcfee commented 7 years ago

Implemented in #11