pydantic / pydantic-extra-types

Extra Pydantic types.
MIT License
176 stars 47 forks source link

add parsing of pendulum_dt from unix time #185

Closed 07pepa closed 2 months ago

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:loudspeaker: Thoughts on this report? Let us know!

07pepa commented 2 months ago

i did not want to wait for https://github.com/pydantic/pydantic-extra-types/pull/169

07pepa commented 2 months ago

@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