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

add parsing of pendulum_dt from unix time #185

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

07pepa
Copy link
Contributor

@07pepa 07pepa commented Jun 11, 2024

No description provided.

Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@07pepa 07pepa force-pushed the and-unix-time-parsing branch from 1e55159 to 643c081 Compare June 11, 2024 12:26
@07pepa
Copy link
Contributor Author

07pepa commented Jun 11, 2024

i did not want to wait for #169

@07pepa 07pepa marked this pull request as draft June 11, 2024 12:36
@07pepa 07pepa force-pushed the and-unix-time-parsing branch 2 times, most recently from 8a7ed17 to 5f43c88 Compare June 11, 2024 14:48
@07pepa 07pepa marked this pull request as ready for review June 11, 2024 14:51
@07pepa 07pepa force-pushed the and-unix-time-parsing branch 2 times, most recently from 731b68a to 7946d9c Compare June 11, 2024 15:03
@07pepa
Copy link
Contributor Author

07pepa commented Jun 11, 2024

@yezz123 sorry for more noise with this one but it is ready to review/merge

as extra i wanted to have full feature parity with https://docs.pydantic.dev/latest/api/standard_library_types/#datetimedatetime

since i do not know case when pydantic itself would parse it differently i kept pendulum parsing as fallback option and even made it settable

* improve type checking in pendulum_dt.py
* added tests
Copy link
Collaborator

@yezz123 yezz123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1

@yezz123 yezz123 merged commit 746de18 into pydantic:main Jun 11, 2024
19 checks passed
@07pepa 07pepa deleted the and-unix-time-parsing branch June 11, 2024 17:56
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.

2 participants