Closed mottosso closed 8 years ago
Because registered plug-ins are implicitly subclassed (see #272), they lose their docstring.
import pyblish.api class MyPlugin(pyblish.api.ContextPlugin): """My docstring""" pyblish.api.register_plugin(MyPlugin) pyblish.api.registered_plugins()[0].__doc__ == ""
Docstring attribute should remain.
When subclassing, copy docstring to subclass.
Because registered plug-ins are implicitly subclassed (see #272), they lose their docstring.
Reproducible
Expected
Docstring attribute should remain.
Solution
When subclassing, copy docstring to subclass.