-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Convert memoryview and slice to Any payload #646
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
Codecov Report
@@ Coverage Diff @@
## master #646 +/- ##
==========================================
+ Coverage 40.81% 41.08% +0.27%
==========================================
Files 76 77 +1
Lines 17345 17525 +180
Branches 4474 4548 +74
==========================================
+ Hits 7079 7201 +122
- Misses 8366 8404 +38
- Partials 1900 1920 +20
Continue to review full report at Codecov.
|
vm/src/obj/objrange.rs
Outdated
|
||
_ => Err(vm.new_type_error("range indices must be integer or slice".to_string())), | ||
return Ok(PyObject::new( |
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.
Instead of if-with-a-return, do not use return, but the implement else. This gives less different return paths from the code.
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.
Oops, I went too fast here and got sloppy 😄
Based on #645 to avoid conflicts.