We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
pydantic version: 1.9.0 pydantic compiled: True install path: /home/user/repo/venv/lib/python3.10/site-packages/pydantic python version: 3.10.0 (default, Oct 11 2021, 05:33:59) [GCC 11.2.0] platform: Linux-5.13.0-28-generic-x86_64-with-glibc2.34 optional deps. installed: ['typing-extensions']
When using base settings in (even without Field see #3617 #3753)
from pydantic import BaseSettings class MySettings(BaseSettings): option_1: str option_2: int MySettings()
the resulting class expects the parameters to be provided by the program and not by the environment. Therefore Pylance seems to complain.
Btw: I use the basic setting:
"python.analysis.typeCheckingMode": "basic", "python.languageServer": "Pylance",
The addition of parameters in BaseModel is welcome change, however I don't think the BaseSettings class should be affected as well.
The text was updated successfully, but these errors were encountered:
closing as a duplicate of #3753 which has more details.
Sorry, something went wrong.
No branches or pull requests
Checks
Bug
Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:When using base settings in (even without Field see #3617 #3753)
the resulting class expects the parameters to be provided by the program and not by the environment. Therefore Pylance seems to complain.
Btw: I use the basic setting:
The addition of parameters in BaseModel is welcome change, however I don't think the BaseSettings class should be affected as well.
The text was updated successfully, but these errors were encountered: