Skip to content

add parsing of pendulum_dt from unix time - #185

Merged
yezz123 merged 1 commit into
pydantic:mainfrom
07pepa:and-unix-time-parsing
Jun 11, 2024
Merged

yezz123 merged 1 commit into
pydantic:mainfrom
07pepa:and-unix-time-parsing

Conversation

@07pepa

@07pepa 07pepa commented Jun 11, 2024

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Jun 11, 2024

Copy link
Copy Markdown

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

07pepa commented Jun 11, 2024 •

Copy link
Copy Markdown
Contributor Author

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

07pepa commented Jun 11, 2024 •

Copy link
Copy Markdown
Contributor Author

@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

@yezz123 yezz123 left a comment

Copy link
Copy Markdown
Collaborator

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
@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