Support __pos__ magic method for Expr and GenExpr#1227
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1227 +/- ##
==========================================
+ Coverage 57.91% 57.98% +0.07%
==========================================
Files 26 27 +1
Lines 5807 5839 +32
==========================================
+ Hits 3363 3386 +23
- Misses 2444 2453 +9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
|
Thank you, @Zeroto521 ! |
Joao-Dionisio
approved these changes
Jun 20, 2026
jonathanberthias
added a commit
to jonathanberthias/PySCIPOpt
that referenced
this pull request
Jun 20, 2026
Joao-Dionisio
pushed a commit
that referenced
this pull request
Jun 21, 2026
* Add comprehensive type tests for expression arithmetic * Add steps to stubs.yml workflow to check generated output * Update mypy baseline after #1220 * Update tests and results after #1227 * Align dimensions of all arrays to 3 To avoid counting shape broadcasting errors as typing errors. Since shape-typing is nearly impossible to achieve, let's assume shapes are correct and focus on typing the operation result. * Ignore deb file in GH workflow * Update baseline results * Pin version of Mypy used * Delete generated tests from repo * Run test generation and baseline together * Lock dependencies used * Remove operations that always error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #1225