Skip to content

DOMNode and Component walk their families through metaclass_registry's Descendants - #322

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

Follows OpenHCSDev/metaclass-registry#17. DOMNode.contexts (dom.py:533) and Component.named's walk (css/native.py:127) were two hand-written __subclasses__ walks. Both classes inherit Descendants; contexts() is deleted (its callers read descendants()), and named() is one generator over descendants().

Checks: all 19 component parts resolve to themselves through named(), and their CSS names are distinct, so the changed visit order changes no answer. Bindings dump identical. css native/stylesheet/selector, widget and navigation_spellings tests 140 passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn

…s Descendants

DOMNode.contexts and Component.named's hand-written __subclasses__ walks are deleted;
both classes inherit Descendants and read descendants().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn
@trissim
trissim merged commit 33a090f into main Nov 16, 2026
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