Pydantic: Add support for Visual Studio Code

Created on 13 Nov 2020  路  2Comments  路  Source: samuelcolvin/pydantic

Checks

  • [x] I added a descriptive title to this issue
  • [x] I have searched (google, github) for similar issues and couldn't find anything
  • [x] I have read and followed the docs and still think this feature/change is needed
  • [x] After submitting this, I commit to one of:

    • Look through open issues and helped at least one other person

    • Hit the "watch" button on this repo to receive notifications and I commit to help at least 2 people that ask questions in the future

    • Implement a Pull Request for a confirmed bug

Feature Request

Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":

             pydantic version: 1.7.2
            pydantic compiled: True
                 install path: /home/math/.pyenv/versions/3.7.8/lib/python3.7/site-packages/pydantic
               python version: 3.7.8 (default, Aug 18 2020, 10:52:32)  [GCC 9.3.0]
                     platform: Linux-4.19.104-microsoft-standard-x86_64-with-debian-bullseye-sid
     optional deps. installed: ['typing-extensions']

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.

feature request

Most helpful comment

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.

All 2 comments

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.

Nice! Should I close this issue then?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iwoloschin picture iwoloschin  路  3Comments

ashpreetbedi picture ashpreetbedi  路  3Comments

timonbimon picture timonbimon  路  3Comments

sommd picture sommd  路  3Comments

mgresko picture mgresko  路  3Comments