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
[Feature request] [VS Code] No auto complete when using pydantic.dataclasses.dataclass #4006
Labels
Comments
giuliano-macedo
changed the title
[VS Code] No auto completion when using pydantic.dataclasses.dataclass
[Bug] [VS Code] No auto completion when using pydantic.dataclasses.dataclass
Apr 24, 2022
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. |
samuelcolvin
added
feature request
and removed
bug V1
Bug related to Pydantic V1.X
labels
Apr 24, 2022
giuliano-macedo
changed the title
[Bug] [VS Code] No auto completion when using pydantic.dataclasses.dataclass
[Feature request] [VS Code] No auto completion when using pydantic.dataclasses.dataclass
Apr 24, 2022
giuliano-macedo
changed the title
[Feature request] [VS Code] No auto completion when using pydantic.dataclasses.dataclass
[Feature request] [VS Code] No auto complete when using pydantic.dataclasses.dataclass
Apr 24, 2022
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: