Skip to content

Commit 7709bb3

Browse files
committed
fixed warning
1 parent 28a5106 commit 7709bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/settings-library/src/settings_library/utils_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def print_as_envfile(
2727
):
2828
exclude_unset = pydantic_export_options.get("exclude_unset", False)
2929

30-
for name, field in settings_obj.model_fields.items():
30+
for name, field in type(settings_obj).model_fields.items():
3131
auto_default_from_env = (
3232
field.json_schema_extra is not None
3333
and field.json_schema_extra.get("auto_default_from_env", False)

0 commit comments

Comments
 (0)