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.
take
function for jiff classesDate
Time
DateTime
Timestamp
ai word salad
This pull request introduces several changes to improve the handling of series in various classes and add a new generic
JiffSeries
class. The changes span across multiple files includingREADME.md
,docs/src/api.md
, and various source files in thecrates/ryo3-jiff
directory.Improvements to series handling:
README.md
,docs/src/api.md
,python/ry/ryo3/_jiff.pyi
: Updated theseries
method inDate
,Time
,DateTime
, andTimestamp
classes to returnJiffSeries
instead oft.Iterator
. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]Addition of
JiffSeries
class:README.md
,docs/src/api.md
,python/ry/ryo3/_jiff.pyi
: Added a newJiffSeries
class that implementst.Generic[T]
with methods__iter__
,__next__
, andtake
. [1] [2] [3]Rust codebase enhancements:
crates/ryo3-jiff/src/ry_date.rs
,crates/ryo3-jiff/src/ry_datetime.rs
,crates/ryo3-jiff/src/ry_time.rs
,crates/ryo3-jiff/src/ry_timestamp.rs
: Added thetake
method to theRyDateSeries
,RyDateTimeSeries
,RyTimeSeries
, andRyTimestampSeries
implementations. [1] [2] [3] [4]Dependency updates:
Cargo.toml
: Updated the version from0.0.34
to0.0.35
.Code imports:
crates/ryo3-jiff
directory: Addedstd::borrow::BorrowMut
import to support the newtake
method. [1] [2] [3] [4]