Skip to content

Commit

Permalink
Add explicit type hint to BaseSettings.model_config (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Jul 4, 2023
1 parent aa24ff5 commit 474ed0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydantic_settings/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations as _annotations

from pathlib import Path
from typing import Any
from typing import Any, ClassVar

from pydantic import ConfigDict
from pydantic._internal._utils import deep_update
Expand Down Expand Up @@ -153,7 +153,7 @@ def _settings_build_values(
# to an informative error and much better than a confusing error
return {}

model_config = SettingsConfigDict(
model_config: ClassVar[SettingsConfigDict] = SettingsConfigDict(
extra='forbid',
arbitrary_types_allowed=True,
validate_default=True,
Expand Down

0 comments on commit 474ed0a

Please sign in to comment.