Skip to content

special-members with inherited-members shows all default special methods #5923

@pitrou

Description

@pitrou

When using special-members together with inherited-members, the default versions of special methods which were not specialized are shown, which means the doc for even the simplest class will list all special methods such as __len__, etc. (with a docstring such as "Return len(self).").

It would be nice if autodoc could detect that a special method was not defined and skip documenting it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions