Repository navigation
Modernize _compointer_base.value to the @property style. - #1023
jeanluyac-sketch wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137jz1XbSeuomn8S7nSE9k6
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1023 +/- ##
==========================================
+ Coverage 92.62% 92.64% +0.01%
==========================================
Files 154 154
Lines 16870 16884 +14
==========================================
+ Hits 15626 15642 +16
+ Misses 1244 1242 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
junkmd
left a comment
There was a problem hiding this comment.
I understand the production code change itself looks good, though I'm a bit concerned that return self isn't covered by tests. Could you add a quick test for it?
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137jz1XbSeuomn8S7nSE9k6
|
Thanks for the review. I added |
junkmd
left a comment
There was a problem hiding this comment.
I suspect overriding .value serves a purpose internally.
While the unit tests cover the direct behavior well, it seems important to the package's internals that .value returns self instead of an integer pointer—possibly due to duck typing expecting .value to exist.
Do you think we can test that code path through integration or E2E tests without calling .value directly?
Closes #377
Replaces the old
property(__get_value, doc=...)style of_compointer_base.valuewith a@propertyand a docstring, as proposed in the issue. Thehints.Selfreturn annotation was already in place. No behaviour change.Checked:
ruff format --checkpasses andpyright --pythonplatform Windowsreports the same errors in this file before and after (6, all pre-existing). I did not run the unittest suite on Windows for this change.AI assistance: drafted with Claude; I reviewed the diff myself.