Repository navigation
DOMNode and Component walk their families through metaclass_registry's Descendants - #322
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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