Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

custom_inherit-1.0.zip (6.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page