Skip to content

Conversation

Viicos
Copy link
Member

@Viicos Viicos commented May 9, 2025

Change Summary

If you look some lines below, the used_req_fields is only used to error if exclude_none (or some other settings) is not set, which makes this unnecessary.

Related issue number

Checklist

  • Unit tests for the changes exist
  • Documentation reflects the changes where applicable
  • Pydantic tests pass with this pydantic-core (except for expected changes)
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Copy link

codspeed-hq bot commented May 9, 2025

CodSpeed Performance Report

Merging #1708 will not alter performance

Comparing exclude-none-req-fields (9a9c801) with main (d03bf4a)

Summary

✅ 157 untouched benchmarks

@Viicos Viicos merged commit f0106b9 into main May 16, 2025
28 of 29 checks passed
@Viicos Viicos deleted the exclude-none-req-fields branch May 16, 2025 13:08
aezomz added a commit to aezomz/pydantic-core that referenced this pull request May 16, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant