Skip to content

Commit

Permalink
Change field_is_complex to be more similar to pydantic v1
Browse files Browse the repository at this point in the history
  • Loading branch information
dmontagu committed Apr 27, 2023
1 parent 4f02775 commit 0683d4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion pydantic_settings/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def _settings_build_values(
),
env_prefix_len=len(self.model_config.get('env_prefix', '')),
)
# self.__env_settings__ = env_settings
dotenv_settings = DotEnvSettingsSource(
self.__class__,
env_file=(_env_file if _env_file != env_file_sentinel else self.model_config.get('env_file')),
Expand Down
4 changes: 1 addition & 3 deletions pydantic_settings/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ def field_is_complex(self, field: FieldInfo) -> bool:
Returns:
bool: Whether the field is complex.
"""
result = _annotation_is_complex(field.annotation)
print(result, field.annotation)
return result
return _annotation_is_complex(field.annotation)

def prepare_field_value(self, field_name: str, field: FieldInfo, value: Any, value_is_complex: bool) -> Any:
"""
Expand Down

0 comments on commit 0683d4b

Please sign in to comment.