Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

Fixes #397

This change exports the `with_hms`, `with_hms_from`, `with_time_from`,
`with_hms_strict`, and `with_hms_strict_from` functions from `Epoch` to Python.

The following changes were made:
- Added `pyo3` imports and `#[pymethods]` attribute in `src/epoch/with_funcs.rs`.
- Added `:type` and `:rtype` docstrings for Python type hinting.
- Added Python tests in `tests/python/test_epoch.py` to verify the new methods.
- Bumped version from 4.1.1 to 4.1.2 in `Cargo.toml`.

Stub generation was skipped as you requested and will be handled separately.
@ChristopherRabotin ChristopherRabotin marked this pull request as ready for review July 2, 2025 19:35
@ChristopherRabotin ChristopherRabotin merged commit e3c5c67 into master Jul 3, 2025
26 checks passed
@ChristopherRabotin ChristopherRabotin deleted the export-with-funcs-to-python branch July 3, 2025 17:29
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.

Export the with_* Epoch functions to Python

1 participant