File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
pydantic_settings/sources Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ class Settings(BaseSettings):
426
426
values [name ] = value
427
427
continue
428
428
429
- if _lenient_issubclass (sub_model_field .annotation , BaseModel ) and isinstance (value , dict ):
429
+ if sub_model_field is not None and _lenient_issubclass (sub_model_field .annotation , BaseModel ) and isinstance (value , dict ):
430
430
values [field_key ] = self ._replace_field_names_case_insensitively (sub_model_field , value )
431
431
else :
432
432
values [field_key ] = value
Original file line number Diff line number Diff line change @@ -594,7 +594,7 @@ def parse_args_insensitive_method(
594
594
if matched :
595
595
arg = matched .group (1 ).lower () + matched .group (2 )
596
596
insensitive_args .append (arg )
597
- return parser_method (root_parser , insensitive_args , namespace ) # type: ignore
597
+ return parser_method (root_parser , insensitive_args , namespace )
598
598
599
599
return parse_args_insensitive_method
600
600
You can’t perform that action at this time.
0 commit comments