Skip to content

Descendants: a class family's members from the class graph - #17

Merged
trissim merged 1 commit into
mainfrom
claude-a/subclass-walks
Nov 16, 2026
Merged

trissim merged 1 commit into
mainfrom
claude-a/subclass-walks

Conversation

@trissim

@trissim trissim commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

The fork walked __subclasses__ by hand twice: DOMNode.contexts (dom.py:533) and Component.named (css/native.py:127). metaclass_registry.descendants.Descendants.descendants() owns that walk (depth first, declaration order, each class once), verbatim from contexts(). The textual PR deletes both copies.

Tests: 129 passed, including the new test_descendants (diamond visited once, declaration order).

🤖 Generated with Claude Code

https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn

The Textual fork walked __subclasses__ by hand twice (DOMNode.contexts and
Component.named). One mixin owns the walk: depth first, declaration order, each class
once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn
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