A Python package that provides customized docstring inheritance schemes between derived classes and their parents.
Project description
The Python package custom_inherit provides the capability for a class to inherit docstrings from its parents in customizable ways. For instance, the built-in “numpy” inheritance style will merge numpy-formatted docstrings sections of the parent’s and child’s respective docstrings in a nice way.
custom_inherit exposes a metaclass, DocInheritMeta(), that, when used as inherited by some parent class, will automatically handle all docstring inheritance for all subsequent derived classes of that parent, and their properties, methods, static methods, class methods, and decorated methods
This package has been tested (and works) in both Python 2.7 and Python 3.5.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.