Repository navigation
Refuse inlining methods decorated with abc.abstractmethod - #968
Aschenbath wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #968 +/- ##
=======================================
Coverage 95.44% 95.45%
=======================================
Files 134 134
Lines 26910 26929 +19
=======================================
+ Hits 25685 25704 +19
Misses 1225 1225 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Nice clean fix for #744. I particularly like that the decorator is resolved properly via I have a few objections; all of them are stylistic issues (nits), none should block this:
None of the above is a dealbreaker — feel free to address or ignore them. Happy to see this merged as-is. |
mcepl
left a comment
There was a problem hiding this comment.
approve with small objections in a separate comment
Inlining an abstract method can remove the abstract contract and substitute its placeholder body for a concrete implementation. Reject this refactoring before collecting changes, resolving the decorator so aliases and qualified imports are recognized while unrelated decorators with the same name still work.
Closes #744.
All 105 inline tests and 3 decorator subtests pass. The abstract-method regression fails on unchanged source. Black and git diff --check pass.