Skip to content

Fix BaseNode.has_children and has_siblings - #29

Merged
awolverp merged 1 commit into
awolverp:masterfrom
andersk:has_children
Oct 6, 2026
Merged

awolverp merged 1 commit into
awolverp:masterfrom
andersk:has_children

Conversation

@andersk

@andersk andersk commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

has_children and has_siblings returned the raw node's method instead of calling it, so they were always truthy: a text node claimed to have children, and a node without siblings claimed to have siblings.

has_children and has_siblings returned the raw node's method instead
of calling it, so they were always truthy: a text node claimed to have
children, and a node without siblings claimed to have siblings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@awolverp
awolverp merged commit 3cac485 into awolverp:master Oct 6, 2026
12 checks passed
@andersk
andersk deleted the has_children branch October 6, 2026 10:43
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.

2 participants