Replies: 1 comment
-
Seems like a Pydantic question, really. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a reasonable way to convert to a pydantic BaseModel using httpx? I'm having a bit of trouble since ruff gives a type error of something like:
I used to be able to one-line it like in the FastAPI docs here:
Took a look at when that was changed in this PR #923, but it seemed like the user was making a few assumptions before conversion. Namely, he was forgetting that the items may not exist yet where something simple like
could evaluate to None. Let me know if I'm missing something though.
Beta Was this translation helpful? Give feedback.
All reactions