Commit 2b0d76a5 authored by Robert Jordens's avatar Robert Jordens
Browse files

decorators: inherit docstring and module

parent 9e76fee6
...@@ -28,7 +28,8 @@ class ModuleTransformer: ...@@ -28,7 +28,8 @@ class ModuleTransformer:
return f return f
Wrapped.__name__ = victim.__name__ Wrapped.__name__ = victim.__name__
# "{}_{}".format(self.__class__.__name__, victim.__name__) Wrapped.__doc__ = victim.__doc__
Wrapped.__module__ = victim.__module__
return Wrapped return Wrapped
def wrap_instance(self, victim): def wrap_instance(self, victim):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment