Skip to content

fix: let dataclass fields be documented with either Attributes or Parameters, without duplication#241

Merged
rich-iannone merged 3 commits into
mainfrom
fix-dataclass-section-duplication
Jun 29, 2026
Merged

fix: let dataclass fields be documented with either Attributes or Parameters, without duplication#241
rich-iannone merged 3 commits into
mainfrom
fix-dataclass-section-duplication

Conversation

@rich-iannone

Copy link
Copy Markdown
Member

For a @dataclass, great-docs auto-generates a "Parameter Attributes" section from the fields. Previously this was only suppressed when the docstring supplied a Parameters section, so documenting fields under an Attributes section produced two near-duplicate sections. This PR will either now accept a Parameters or an Attributes section (with no duplication).

@rich-iannone rich-iannone merged commit 02a2d01 into main Jun 29, 2026
8 checks passed
@rich-iannone rich-iannone deleted the fix-dataclass-section-duplication branch June 29, 2026 14:53
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