All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- For performance reasons and because the inheritance is only useful when building the documentation,
the public metaclasses and functions of this package are stubs that does nothing.
When building the documentation,
enable the docstrings inheritance by setting the environment variable
DOCSTRING_INHERITANCE_ENABLE=1. - The public API is now the bare minimum.
- Support for Python 3.14
- No longer inheriting from
object.__init__when the first class in the hierarchy has no docstring for__init__. This prevents adding the docstring summaryInitialize self. See help(type(self)) for accurate signature.. - The sections names are no longer limited to the ones defined in the docstrings formats.
- The sections are no longer reordered.
- Inheritance of method docstring with multiple inheritance such that at least the first class does not inherit docstrings.
- Detecting missing arguments when there was no inheritance for a docstring.
- Docstring inheritance for decorated methods and functions.
- Support for Python 3.9
- Support for Python 3.13
- Support for Python 3.8
- Compatibility with griffe > 1.0.0.
- Extension to support building docs with mkdocs.
- Docstrings inheritance with decorators.
- Warning messages are no longer shown by default.
Set the environment variable
DOCSTRING_INHERITANCE_WARNSto activate them.
- Warning messages are more relevant.
- Some warnings for missing arguments were spurious.
- Warnings for missing method arguments in docstrings.
- Duplicated docstrings detection for missing inheritance opportunities.
- Support for Python 3.12.
- Parsing of Google docstrings with Sphinx directives (like
.. math::) is no longer considered as a section.
- Docstring inheritance for methods only inherit from the first found parent.
- For the Numpy style, the section
OtherParametersis no longer processed against the arguments of the signature.
- Docstring inheritance for methods with no argument descriptions.
- Format of the arguments provided with the default description for the Numpy style.
- Docstring inheritance for methods with no arguments.
- Docstring inheritance for methods with multiple parents.
- Support class docstrings with
__init__signature description.
- Some performance improvements.
- Metaclasses API no longer leaks into the classes they create.
- Support for Python 3.11.
- Metaclasses naming.
- Handling of object in the class hierarchy.
- Rendering of Google docstrings with no summaries.
- Formatting of items without descriptions.
- Inheritance of a metaclass'd class from its grandparents.
- Initial release.