Skip to content

Commit 0324c4d

Browse files
committed
fix: codestyle
1 parent 7cdf1da commit 0324c4d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_complex_nested_models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,9 @@ def test_serialize_columns_nested_model_fields(get_instance):
622622
serialize_columns={
623623
"string": lambda v: v.lower() if v else None,
624624
"model": (
625-
lambda v: {"custom_id": v.id, "custom_string": v.string.upper()} if v else None
625+
lambda v: {"custom_id": v.id, "custom_string": v.string.upper()}
626+
if v
627+
else None
626628
),
627629
}
628630
)

0 commit comments

Comments
 (0)