-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Autocompletion not working in VS Code with Pydantic #9175
Comments
Thanks for reporting. I'm not sure what the issue is - maybe someone else from the community has experienced this problem / has a fix? Can leave this open for now 👍 |
Could you share a screenshot of what you get in VSCode? |
Interesting, it shows the signature of I see a warning on your |
As of today, without any changes on my part (that I'm aware of) the autocompletion started working. I have no idea. |
Haha, ok! Marking as resolved then. Thanks @holyoaks! |
Initial Checks
Description
I followed the instructions at https://docs.pydantic.dev/latest/integrations/visual_studio_code/#configure-vs-code but no matter what I do, I do not get autocompletion. I'm using Pylance (as noted in the docs, the default) as my language server, and can confirm Pydantic ==2.6.4 is installed in my virtual environment that VS Code is using. When I enable basic | standard | strict type checking in VS Code, I DO get type checking, but I always get
BaseModelSubclass(**data)
as the autocomplete for all of my Pydantic BaseModel subclasses. What might be wrong here?Example Code
No response
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: