How to prevent typehint errors for Pydantic datetime validation
I am designing a Pydantic model that contains some datetime fields, like so:
Pydantic serialization on custom schema
I am using pydantic v2 and have a custom schema for a FutureAwareDatetime.
Using Pydantic with typing.Protocol
I’m attempting to use typing protocols and pydantic together and am running into some issues. I expect probably my understanding of how to properly use the two of them together is lacking.