- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Feature request] [VS Code] No auto complete when using pydantic.dataclasses.dataclass #4006
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
Labels
Comments
There is not bug in pydantic described here. |
This was referenced Apr 24, 2022
@samuelcolvin Are you sure? it's simillar to the issue that this PR solves: #2721 Or you mean this issue should be a feature request? ( I was undecided about this when creating this issue sry) |
Maybe it's the same as #2721. There was m really wasn't enough detail on the issue. Either way, it's a feature request. |
1 task
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.
Feature request
Similar to the issue that #2721 solves, VS Code can't auto complete models constructor parameters when using
pydantic.dataclasses.dataclass
.Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:Example Code:
VS Code:
pydantic-bug-2022-04-24_09.29.26.mp4
Workaround:
You can import python pure dataclass instead of pydantic's dataclass when type checking, as stated by @JosXa here:
The text was updated successfully, but these errors were encountered: