Skip to content

Fix/subclass support in trait documenter#1866

Merged
itziakos merged 7 commits into
mainfrom
fix/subclass-support-in-trait-documenter
Nov 10, 2025
Merged

Fix/subclass support in trait documenter#1866
itziakos merged 7 commits into
mainfrom
fix/subclass-support-in-trait-documenter

Conversation

@itziakos
Copy link
Copy Markdown
Member

@itziakos itziakos commented Nov 8, 2025

  • Augment tests for trait_documenter
  • Update code to documente traits in subclasses

fixes #1865

# the whole documentation build.
# Look into the class and parent classes:
parent = self.parent
classes = list(types.resolve_bases(parent.__bases__))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice - I didn't know about types.resolve_bases.

Copy link
Copy Markdown
Member

@mdickinson mdickinson left a comment

Choose a reason for hiding this comment

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

LGTM

@itziakos itziakos merged commit e3334d7 into main Nov 10, 2025
32 checks passed
@itziakos itziakos deleted the fix/subclass-support-in-trait-documenter branch November 10, 2025 16:31
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.

trait_documenter fails with simple inheritance

2 participants