We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6d115d commit 01c1057Copy full SHA for 01c1057
pydantic_settings/sources.py
@@ -1571,7 +1571,7 @@ def _add_parser_submodels(
1571
if self.cli_use_class_docs_for_groups and len(sub_models) == 1:
1572
model_group_kwargs['description'] = None if sub_models[0].__doc__ is None else dedent(sub_models[0].__doc__)
1573
1574
- if model_default not in (PydanticUndefined, None):
+ if model_default is not PydanticUndefined:
1575
if is_model_class(type(model_default)) or is_pydantic_dataclass(type(model_default)):
1576
model_default = getattr(model_default, field_name)
1577
else:
0 commit comments