Skip to content

Commit 91e98f9

Browse files
committed
Factor in this PR #1708 changes, remove unecessary required fields count when exclude_none is set
1 parent 162a87f commit 91e98f9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/serializers/fields.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,6 @@ impl GeneralFieldsSerializer {
229229
) -> PyResult<()> {
230230
let op_field = self.fields.get(key_str);
231231
if extra.exclude_none && value.is_none() {
232-
if let Some(field) = op_field {
233-
if field.required {
234-
*used_req_fields += 1;
235-
}
236-
}
237232
return Ok(());
238233
}
239234
let field_extra = Extra {

0 commit comments

Comments
 (0)