Replies: 1 comment 1 reply
-
|
Feel free to create the PR for this change |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
IDE
VSCode
SETUP
Have these settings in your vscode:
"python.languageServer": "Pylance",
"python.analysis.typeCheckingMode": "strict"
DESCRIPTION
I was just reading through the User Guide in the documentation, once I was at the request body part, the code snippet used .dict() on the item from the request body, then a red squiggly line appears under .dict() saying it's deprecated and that model_dump() should be used instead (refer to attached photo).
This isn't really a breaking bug as my code still runs, and this is only appearing because I have strict mode on, but is it a good idea to update the docs according to this? if so, I would like to take a crack at it :)
Operating System
Windows
Operating System Details
Windows 11
FastAPI Version
0.116.1
Pydantic Version
2.11.7
Python Version
3.11.4
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions