lightly
lightly copied to clipboard
docs: add docstrings to DINOViewTransform and IBOTViewTransform
Part of #1942
This PR:
- Adds Google-style docstrings to
DINOViewTransformandIBOTViewTransform, following the format agreed in #1946: anArgs:block in__init__(name and description on the same line) rather than anAttributes:block on the class - Updates
docs/source/lightly.transforms.rstto render the new__init__docstrings: adds__init__to:special-members:fordino_transform, and adds a new autodoc entry foribot_transform, which was previously missing from the docs entirely
This PR does not:
- Change any runtime behavior (docs only)
- Touch the parent
DINOTransform/IBOTTransformdocstrings, which still use the olderAttributes:style — those are out of scope for #1942
Two side effects of the rst changes, worth flagging:
- The
ibot_transformmodule (bothIBOTTransformandIBOTViewTransform) now appears in the rendered docs for the first time :special-members: __init__applies to all classes in each module, so the parent transforms'__init__signatures now render too; their parameters are still documented in their class-levelAttributes:blocks
Tested with:
make format-check
make lint
make type-check
python -m pytest tests/transforms
All pass. Docstring augmentation lists were checked against each transform's actual augmentation pipeline.