pydoc prettyplotlib.general doesn't show any results because it thinks the subplots and subplot2grid functions are defined in the pyplot module, as functools.wraps has modified their __module__ attribute. Instead, I think only the __doc__ and __wrapped__ attributes should be set, either manually or using functools.update_wrapper (setting __wrapped__ properly also sets the correct signature in pydoc).
pydoc prettyplotlib.general
doesn't show any results because it thinks thesubplots
andsubplot2grid
functions are defined in thepyplot
module, asfunctools.wraps
has modified their__module__
attribute. Instead, I think only the__doc__
and__wrapped__
attributes should be set, either manually or usingfunctools.update_wrapper
(setting__wrapped__
properly also sets the correct signature in pydoc).