Inheriting methods’ docstrings in Python
This is a variation on Paul McGuire’s DocStringInheritor metaclass. It inherits a parent member’s docstring if the child member’s docstring is empty. It inherits a parent class docstring if the child class docstring is empty. It can inherit the docstring from any class in any of the base classes’s MROs, just like regular attribute inheritance. …