Commit 30e2c4f
Fix clear_parent_cache to also clear root node's cache
clear_parent_cache only cleared self._at_instant_cache inside the
`if self.parent is not None` block, so root nodes (parent=None)
never had their cache cleared. Move the clear() before the
conditional so all nodes in the chain are invalidated.
Confirmed: test_clone_update_invalidates_cloned_cache fails without
this fix and passes with it.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 69f24c0 commit 30e2c4f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
247 | 248 | | |
248 | 249 | | |
249 | | - | |
0 commit comments