-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Address comments on #3031 #3049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Code ReviewThanks for addressing the follow-up comments from PR #3031! I've reviewed the changes and overall they look good. Here are my findings: ✅ Strengths
🔍 Minor Issues & Suggestions1. Inconsistent Type Hints (cvxpy/lin_ops/backends/base.py:199)The change from: self.variable_ids = variable_ids if variable_ids is not None else Noneto: self.variable_ids = variable_idsThis is cleaner, but could be even clearer. The conditional was redundant (no-op), so the removal is correct. However, consider if 2. Return Type Annotation ConsistencyIn sp.csc_array | sp.csr_arrayThis is Python 3.10+ syntax. Verify the minimum Python version requirement. If supporting older versions, use: Union[sp.csc_array, sp.csr_array]3. Test Coverage: Missing Rust BackendThe @pytest.mark.parametrize("backend_name", [
s.SCIPY_CANON_BACKEND,
s.COO_CANON_BACKEND,
pytest.param(s.RUST_CANON_BACKEND, marks=pytest.mark.skipif(...))
])🧪 Testing Recommendations
🔒 Security & Performance
📝 Code Quality
VerdictApprove with minor suggestions. The changes are well-implemented and improve code quality. The suggestions above are minor improvements for consideration but don't block merging. Great work on the cleanup! 🎉 |
Transurgeon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look good to me!
nice catch on the rhs vs. lhs for the constant data, I agree it is making a bit more sense now.
|
@SteveDiamond @Transurgeon can you review my commit? I had intended order to determine the flattening used for the first 2 tensor dimensions. |
|
Benchmarks that have stayed the same: |
Description
Addresses follow up comments on #3031
Type of change
Contribution checklist