Skip to content

Commit

Permalink
Add changelog and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpute committed Jan 26, 2024
1 parent a2f3e76 commit 151cc93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions newsfragments/3761.change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change the type of `PySliceIndices::slicelength` and the `length` parameter of `PySlice::indices()`.
4 changes: 2 additions & 2 deletions src/types/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ pyobject_native_type!(
#[derive(Debug, Eq, PartialEq)]
pub struct PySliceIndices {
/// Start of the slice
///
///
/// It can be -1 when the step is negative, otherwise it's non-negative.
pub start: isize,
/// End of the slice
///
///
/// It can be -1 when the step is negative, otherwise it's non-negative.
pub stop: isize,
/// Increment to use when iterating the slice from `start` to `stop`.
Expand Down

0 comments on commit 151cc93

Please sign in to comment.