You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more of a pointer, I think, less of a feature request. At the moment, with VS Code 1.51.1 and pylance 2020.11.1, the type hints just say **data: Any when a pydantic object is created. It would be cool if that could be improved.
Hi @MartinThoma
You're absolutely right! It's something a lot of us want. There is actually an opened issue to add BaseModel autocompletion among other things on Pycharm (already done) and VSCode.
Since this is the first result when googling "vscode pydantic", I'd like to link this here:
Until #2721 is merged, you can add a small snippet to pydantic to get completions. Instructions here.
Checks
Feature Request
Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:This is more of a pointer, I think, less of a feature request. At the moment, with VS Code 1.51.1 and pylance 2020.11.1, the type hints just say
**data: Any
when a pydantic object is created. It would be cool if that could be improved.The text was updated successfully, but these errors were encountered: