Skip to content

Autogenerate Attribute docstrings#5246

Open
harshil21 wants to merge 14 commits into
doc-fixesfrom
auto-doc-attr
Open

Autogenerate Attribute docstrings#5246
harshil21 wants to merge 14 commits into
doc-fixesfrom
auto-doc-attr

Conversation

@harshil21
Copy link
Copy Markdown
Member

Closes #5242

Took the time to write a full blown docstring parser to do this. So far I've found it pretty reliable since it caught quite a few missing / malformed docstrings.

One thing I changed: the |tupleclassattrs| and |sequenceclassargs| versionchanged notes were deleted. I did this because they were done for v20.0 and it's been many years since that. That we can unify the argument and attribute docstring.

I manually checked most edge cases and confirmed that they show on the docs. Feel free to build the docs and check a random page's to compare the before and after.


AI assisted disclosure: The tests were >90% written by AI (I looked over all of them, and they were quite satisfactory). It also did some of the parser/insertion logic, which I later fine tuned when I found edge cases / logic errors.

Merge after #5241

@harshil21 harshil21 requested review from Poolitzer and aelkheir May 26, 2026 12:46
@harshil21 harshil21 added the ⚙️ documentation affected functionality: documentation label May 26, 2026
Base automatically changed from auto-doc-raises to doc-fixes May 26, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️ documentation affected functionality: documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant