Repository navigation
Remove dead early return in _coclass_meta.__new__ - #1016
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1016 +/- ##
=======================================
Coverage 92.62% 92.63%
=======================================
Files 154 154
Lines 16870 16868 -2
=======================================
- Hits 15626 15625 -1
+ Misses 1244 1243 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Heads up—this commit is showing up as A signature is present, so GitHub just isn't able to validate it (common culprits: the key isn't registered as a Signing key, an email mismatch, or Claude Code signing settings). Could you re-push with a valid signature when you get a chance? Quick refs: https://docs.github.com/en/authentication/managing-commit-signature-verification Feel free to amend and force-push, or replace it with a new commit. Sorry for the hassle and thanks! |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137jz1XbSeuomn8S7nSE9k6
20dca93 to
7f84b79
Compare
|
Thanks @junkmd, I re-pushed the commit; it is now signed and shows as Verified. Sorry for the hassle. (AI-assisted: Claude helped prepare this change; I reviewed it.) |
Closes #655
Removes the early
return selfforbases == (object,)in_coclass_meta.__new__.CoClassis defined asclass CoClass(COMObject, metaclass=_coclass_meta), sobasesis never(object,)there, and coverage shows the branch is never entered (as noted in the issue). The similar check in_post_coinit/unknwn.pyis live (it identifiesIUnknownitself) and is left alone.Tested on Windows 11 / Python 3.14: unittest suite on this branch and on
maingives the same results (813 tests; theleakstests were excluded becausetest_collections.test_leaks_1hangs onmaintoo on my machine, and the Word tests pass when run on their own).AI assistance: this change was drafted with Claude; I reviewed it and ran the tests myself.