Commit 8345a2e2 authored by Florent Jaillet's avatar Florent Jaillet

Improve _complex_masking_only decorator to avoid a documentation bug

parent 0b09a453
Pipeline #504 passed with stages
in 1 minute and 13 seconds
......@@ -95,6 +95,7 @@ def _complex_masking_only(f):
errmsg = 'Method not defined if masking is not complex.'
raise ValueError(errmsg)
return f(self)
decorated.__doc__ = f.__doc__
return decorated
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