You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prompt: "Let's be honest, couldn't we be stricter and just remove these comment for good. would they help you in anycase when scanning the code?", then "Open an issue for the repository-wide change".
Note
The following content was generated by AI.
Description
A #: attribute comment never reaches the API reference. mkdocstrings reads the code through griffe, and griffe ignores #: comments. It reads only a string literal directly below an attribute. The repository has about 500 #: lines, and each one is a source comment only. AGENTS.md allows #: attribute docs as if they were documentation.
pixi run docs-build
grep -c 'What the file as a whole is' .docs/reference/program/index.html # 0
src/mathspec/program.py puts that text in a #: line above Program.description. On the page, Program.description, and all four fields of GivenTargets, show a signature with no text.
Decide:
Public fields of an exported class (Program, Spec, GivenBlock, …): move the text to an attribute docstring, or to an Attributes: block in the class docstring, so the page shows it. Or drop it.
Note
The following content was generated by AI.
Description
A
#:attribute comment never reaches the API reference. mkdocstrings reads the code through griffe, and griffe ignores#:comments. It reads only a string literal directly below an attribute. The repository has about 500#:lines, and each one is a source comment only.AGENTS.mdallows#:attribute docs as if they were documentation.Reproduce (checked on the head of #732):
src/mathspec/program.pyputs that text in a#:line aboveProgram.description. On the page,Program.description, and all four fields ofGivenTargets, show a signature with no text.Decide:
Program,Spec,GivenBlock, …): move the text to an attribute docstring, or to anAttributes:block in the class docstring, so the page shows it. Or drop it.#:line.#:line inAGENTS.mdto match.Related links
#:lines on the internal names it adds, and nothing else.