Skip to content

Reorder Tensor documentations such that it can be displayed correctly#171

Merged
Alphaharrius merged 1 commit into
mainfrom
bugfix/tensor-doc
May 24, 2026
Merged

Reorder Tensor documentations such that it can be displayed correctly#171
Alphaharrius merged 1 commit into
mainfrom
bugfix/tensor-doc

Conversation

@Alphaharrius

Copy link
Copy Markdown
Owner

See #164

Summary

We found that _strict_dims was placed before the main Tensor class documentation, which caused the generated docs / linter to associate the docstrings incorrectly and not show the attribute in the proper place.

Rearrange the class documentation so the Tensor docstring remains the class docstring and _strict_dims is documented as a class attribute where tools can pick it up correctly.

We found that `_strict_dims` was placed before the main `Tensor` class
documentation, which caused the generated docs / linter to associate the
docstrings incorrectly and not show the attribute in the proper place.

Rearrange the class documentation so the `Tensor` docstring remains the class
docstring and `_strict_dims` is documented as a class attribute where tools
can pick it up correctly.
@Alphaharrius Alphaharrius added this to the v0.4.1-qten milestone May 23, 2026
@Alphaharrius Alphaharrius requested a review from eyjafjallac May 23, 2026 19:15
@Alphaharrius Alphaharrius self-assigned this May 23, 2026
@Alphaharrius Alphaharrius added bug Something isn't working documentation Improvements or additions to documentation labels May 23, 2026
@Alphaharrius Alphaharrius linked an issue May 23, 2026 that may be closed by this pull request
@Alphaharrius Alphaharrius changed the title Reorder Tensor docstring so _strict_dims is documented correctly Reorder Tensor documentations such that it can be displayed correctly May 23, 2026

@eyjafjallac eyjafjallac left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

@Alphaharrius Alphaharrius merged commit 6649c86 into main May 24, 2026
1 check passed
@Alphaharrius Alphaharrius deleted the bugfix/tensor-doc branch May 24, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation for qten.Tensor is not shown

2 participants