Add automodsumm_ignore_emptydoc global option and flags #102
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements item 1 from #91. This adds and documents the
automodsumm_ignore_emptydoc
flag and:ignore-emptydoc:
and:no-ignore-emptydoc:
options, which can be thought of as an expansion ofautomodsumm_inherited_methods
,:inherited-methods:
, and:no-inherited-methods:
.These options are used to ignore "public" (i.e. name does not start with
_
) class methods with empty__doc__
attributes. This can be used to let developers override public methods or classes from external libraries, but suppress documentation of those overrides. Developers may want to leave out the docstring from an overridden public method so that when users queryhelp(cls.method)
, they get the original, rich documentation from the external library, and they do not have to reproduce the external library documentation in their bare-bones override function.This may be a bit niche for ProPlot but I think it's a pretty harmless addition, and it of course defaults to
False
.