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
fields.TimeDeltaField in pydantic_model_creator raise Input should be None [type=none_required, input_value=datetime.timedelta(second...104, microseconds=48382), input_type=timedelta] #1462
Comments
pydantic 1.10.12 pydantic 1.10.12 |
Can you give a full example? I can't reproduce. |
aiomysql 0.2.0
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
with
tortoise-orm==0.20.0
pydantic==2.2.1
code like:
will get error:
To Reproduce
print TaskListSchema will get
when i use
tortoise-orm==0.19.2
pydantic==1.10.2
print TaskListSchema will get
this schema will work! Is there something change in pydantic_model_creator when handle fields.TimeDeltaField ?
Expected behavior
fields.TimeDeltaField in pydantic_model_creator works good
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: