lightly icon indicating copy to clipboard operation
lightly copied to clipboard

docs: add docstrings to DINOViewTransform and IBOTViewTransform

Open saud5150 opened this issue 5 months ago • 0 comments

Part of #1942

This PR:

  • Adds Google-style docstrings to DINOViewTransform and IBOTViewTransform, following the format agreed in #1946: an Args: block in __init__ (name and description on the same line) rather than an Attributes: block on the class
  • Updates docs/source/lightly.transforms.rst to render the new __init__ docstrings: adds __init__ to :special-members: for dino_transform, and adds a new autodoc entry for ibot_transform, which was previously missing from the docs entirely

This PR does not:

  • Change any runtime behavior (docs only)
  • Touch the parent DINOTransform / IBOTTransform docstrings, which still use the older Attributes: style — those are out of scope for #1942

Two side effects of the rst changes, worth flagging:

  • The ibot_transform module (both IBOTTransform and IBOTViewTransform) 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-level Attributes: 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.

saud5150 avatar Jun 22 '26 11:06 saud5150