Skip to content

Commit 474ed0a

Browse files
authored
Add explicit type hint to BaseSettings.model_config (#97)
1 parent aa24ff5 commit 474ed0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydantic_settings/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations as _annotations
22

33
from pathlib import Path
4-
from typing import Any
4+
from typing import Any, ClassVar
55

66
from pydantic import ConfigDict
77
from pydantic._internal._utils import deep_update
@@ -153,7 +153,7 @@ def _settings_build_values(
153153
# to an informative error and much better than a confusing error
154154
return {}
155155

156-
model_config = SettingsConfigDict(
156+
model_config: ClassVar[SettingsConfigDict] = SettingsConfigDict(
157157
extra='forbid',
158158
arbitrary_types_allowed=True,
159159
validate_default=True,

0 commit comments

Comments
 (0)