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.
1 parent 9b9acf8 commit 97097b7Copy full SHA for 97097b7
pydantic_settings/sources.py
@@ -881,7 +881,7 @@ class Cfg(BaseSettings):
881
type_has_key = self.next_field(type_, key, case_sensitive)
882
if type_has_key:
883
return type_has_key
884
- elif is_model_class(annotation) or is_pydantic_dataclass(annotation):
+ elif is_model_class(annotation) or is_pydantic_dataclass(annotation): # type: ignore[arg-type]
885
fields = _get_model_fields(annotation)
886
# `case_sensitive is None` is here to be compatible with the old behavior.
887
# Has to be removed in V3.
0 commit comments