Skip to content

fix: ops._leaf_of refuses wrapper layers without _id_of_key (#7) - #8

Merged
thorwhalen merged 2 commits into
masterfrom
fix/leaf-of-id-of-key-7
Oct 13, 2026
Merged

thorwhalen merged 2 commits into
masterfrom
fix/leaf-of-id-of-key-7

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

Fixes #7. A hand-rolled wrapper that maps keys but has no _id_of_key made inner_most_key return an unmapped key, so delete_container/walk_container acted on the wrong container/prefix. _leaf_of now raises TypeError (same as pydrivedol). Tests added (fail without the fix).

Adversarial review: pending.

🤖 Generated with Claude Code

thorwhalen and others added 2 commits October 13, 2026 10:54
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…does not define it)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@thorwhalen
thorwhalen merged commit 31694dd into master Oct 13, 2026
1 check passed
@thorwhalen
thorwhalen deleted the fix/leaf-of-id-of-key-7 branch October 13, 2026 10:56
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.

ops._leaf_of should refuse wrapper layers that have no _id_of_key

1 participant