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
As Pydantic doesn't display the variables that are defined in the class:
We can add the __init__ to each of the classes which would allow for VSCode to pick up on what parameters the class takes. This would reduce the time required to look at the docs for required parameters, but would require more code in each class.
The text was updated successfully, but these errors were encountered:
Found a way, unfortunately based on that PR the proper solution to this will not be available until a new standard has been adapted in python. The solution involves making changes to pydantics source and works remarkably well. The following is using the changes defined in that link, along with pylance:
No need for the __init__.
The interesting part is that the pydantic repo actually already contains these changes but there hasn't been a release since may.
We can install from GIT instead of PYPI and it works:
Based on some comments.
As Pydantic doesn't display the variables that are defined in the class:
We can add the
__init__
to each of the classes which would allow for VSCode to pick up on what parameters the class takes. This would reduce the time required to look at the docs for required parameters, but would require more code in each class.The text was updated successfully, but these errors were encountered: