Repository navigation
Conversation
|
A small optional test-only commit, based directly on this branch. The shared helper now rejects a Two small guards worth keeping: reject the read-only source, and leave the destination unchanged on that rejection. This doesn't assume Checked on Python 3.14.4: both new cases pass your head and catch the old copy-like behavior; the existing move-to-root and array-append tests pass on both. Focused Ruff lint/format passes. I haven't run the full Hatch/compliance suites, typing, build or optional-regex/version/OS matrix. To run the added file in your tree: |
This PR refactors
OpRemoveandOpMoveto use a common_remove()function for consistency and better code reuse, just like we did with_add()in #136.OpReplacedoes not use_remove()due to its distinct behavior when replacing a JSON root value.