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.model_config
1 parent aa24ff5 commit 474ed0aCopy full SHA for 474ed0a
pydantic_settings/main.py
@@ -1,7 +1,7 @@
1
from __future__ import annotations as _annotations
2
3
from pathlib import Path
4
-from typing import Any
+from typing import Any, ClassVar
5
6
from pydantic import ConfigDict
7
from pydantic._internal._utils import deep_update
@@ -153,7 +153,7 @@ def _settings_build_values(
153
# to an informative error and much better than a confusing error
154
return {}
155
156
- model_config = SettingsConfigDict(
+ model_config: ClassVar[SettingsConfigDict] = SettingsConfigDict(
157
extra='forbid',
158
arbitrary_types_allowed=True,
159
validate_default=True,
0 commit comments