Skip to content

fix(aggregation): move class docstrings above required deps in CAGradWeighting and _NashMTLWeighting - #825

Closed
adityawaghamare wants to merge 1 commit into
SimplexLab:mainfrom
adityawaghamare:fix/issue-807-6456
Closed

adityawaghamare wants to merge 1 commit into
SimplexLab:mainfrom
adityawaghamare:fix/issue-807-6456

Conversation

@adityawaghamare

Copy link
Copy Markdown

Summary

Moved class docstrings above _REQUIRED_DEPS and _INSTALL_HINT in CAGradWeighting and _NashMTLWeighting so that Python correctly assigns them as class docstrings (__doc__) rather than expression statements.

Changes

  • Updated src/torchjd/aggregation/_cagrad.py to place the docstring of CAGradWeighting before _REQUIRED_DEPS and _INSTALL_HINT.
  • Updated src/torchjd/aggregation/_nash_mtl.py to place the docstring of _NashMTLWeighting before _REQUIRED_DEPS and _INSTALL_HINT.

Verification

  • Verified by checking that CAGradWeighting.__doc__ and _NashMTLWeighting.__doc__ are correctly populated and no longer None.

Closes #807

…Weighting and _NashMTLWeighting

- Closes SimplexLab#807
- Files: src/torchjd/aggregation/_cagrad.py, src/torchjd/aggregation/_nash_mtl.py

Signed-off-by: Aditya Waghamare <adityawaghmare8694@gmail.com>
@ValerianRey ValerianRey closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CAGradWeighting has no docstring, so its doc page is empty

2 participants