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

Improvements to the Datetime support on Python #3600

Merged
merged 2 commits into from
Nov 20, 2023
Merged

Conversation

MangelMaxime
Copy link
Member

The module still don't support all the formatting of the date, but the change made are enough for Thoth.Json to encode the datetime correctly.

@dbrattli
Copy link
Collaborator

@MangelMaxime Looks great, but I took the liberty of rewriting the if-else logic into a match statement that we can now use from Python 3.10+. Not as powerful as F# match expressions, but quite nice nonetheless

@MangelMaxime
Copy link
Member Author

Oh great thank you @dbrattli

@MangelMaxime MangelMaxime merged commit 5d6eeed into main Nov 20, 2023
14 checks passed
@MangelMaxime MangelMaxime deleted the fix/python_datetime branch November 20, 2023 10:38
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