Skip to content

Unable to generate pydantic-core schema for <class 'datetime.datetime'> when using Freezegun #9343

Answered by zachaysan
theadam asked this question in Question
Discussion options

You must be logged in to vote

Thanks for letting me know @theadam. We were able to work around this issue which you can see here:

Flagsmith/flagsmith#3876

It basically loads the model up before FreezeGun gets involved.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@theadam
Comment options

@zachaysan
Comment options

Answer selected by theadam
@theadam
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants