Skip to content

attrdoc: clean attribute docstrings - #192

Merged
rr- merged 2 commits into
mainfrom
rework/57-attr-docstrings
Nov 7, 2026
Merged

rr- merged 2 commits into
mainfrom
rework/57-attr-docstrings

Conversation

@rr-

@rr- rr- commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Covers item 7 from the BEHAVIOR.md review for #136: parse_from_object "cleans the descriptions of attribute docstrings the same way as other docstrings".

An attribute docstring is the string written below an attribute in the class body. parse_from_object() used to return it exactly as it appeared in the source, with its indent and the blank lines around it. It is now cleaned the way any docstring is: the common indent and the surrounding blank lines are removed, and relative indents are kept.

Case diffs: none. Parity against origin/main: 0 of 29184 docstrings differ (case 0, stdlib 0, generated 0). The change only affects parse_from_object().

parse_from_object() took an attribute's docstring, written below it in
the class body, as it stood in the source, with its indent and the
blank lines around it. It is now cleaned as a docstring is.
@rr- rr- self-assigned this Nov 7, 2026
@rr-
rr- merged commit a343ed0 into main Nov 7, 2026
26 checks passed
@rr-
rr- deleted the rework/57-attr-docstrings branch November 7, 2026 10:23
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.

1 participant