Description of the bug
The merge_init_into_class option will merge the docstring of parent __init__ methods into the class docstring even if configuration does not select inherited members.
To Reproduce
- render a class which has a parent class
- set
merge_init_into_classto true - set
inherited_membersto false - observe the parent docstring being merged into the class one
Full traceback
/
Expected behavior
The parent docstring shouldn't be merged into the class one if the parent __init__ method is not selected, or if inherited members are not picked up at all.
Environment information
python -m mkdocstrings_handlers.python.debug # | xclip -selection clipboard- System: /
- Python: cpython 3.11.5
- Environment variables:
- Installed packages:
mkdocsv1.6.1mkdocstringsv0.26.1mkdocstrings-pythonv1.11.1griffev1.3.2
Additional context
Brought up in the Matrix channel.