Skip to content
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

Jiff series take #210

Merged
merged 4 commits into from
Mar 1, 2025
Merged

Jiff series take #210

merged 4 commits into from
Mar 1, 2025

Conversation

jessekrubin
Copy link
Owner

  • series take function for jiff classes
    • Date
    • 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 including README.md, docs/src/api.md, and various source files in the crates/ryo3-jiff directory.

Improvements to series handling:

  • README.md, docs/src/api.md, python/ry/ryo3/_jiff.pyi: Updated the series method in Date, Time, DateTime, and Timestamp classes to return JiffSeries instead of t.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 new JiffSeries class that implements t.Generic[T] with methods __iter__, __next__, and take. [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 the take method to the RyDateSeries, RyDateTimeSeries, RyTimeSeries, and RyTimestampSeries implementations. [1] [2] [3] [4]

Dependency updates:

  • Cargo.toml: Updated the version from 0.0.34 to 0.0.35.

Code imports:

  • Various files in crates/ryo3-jiff directory: Added std::borrow::BorrowMut import to support the new take method. [1] [2] [3] [4]

Copy link

cloudflare-workers-and-pages bot commented Mar 1, 2025

Deploying ry with  Cloudflare Pages  Cloudflare Pages

Latest commit: c0dbf00
Status: ✅  Deploy successful!
Preview URL: https://a3ecfb6e.ry-5qq.pages.dev
Branch Preview URL: https://jiff-series-take.ry-5qq.pages.dev

View logs

@jessekrubin jessekrubin merged commit 6afeaf5 into main Mar 1, 2025
22 checks passed
@jessekrubin jessekrubin deleted the jiff-series-take branch March 1, 2025 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant