We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BaseSettings.__init__()
1 parent 2355bc5 commit 577c05fCopy full SHA for 577c05f
1 file changed
pydantic_settings/main.py
@@ -174,6 +174,9 @@ class BaseSettings(BaseModel):
174
Defaults to `None`.
175
"""
176
177
+ # Note: when adding new parameters, make sure to use `object` instead of `Any` to avoid issues with the Mypy plugin
178
+ # when used with `--disallow-any-explicit`. If `Any` needs to be used as a generic parameter for variance (e.g. in `_build_sources`),
179
+ # make sure to update the Pydantic Mypy plugin accordingly.
180
def __init__(
181
__pydantic_self__,
182
_case_sensitive: bool | None = None,
0 commit comments