Skip to content

Conversation

@davidhewitt
Copy link
Contributor

Change Summary

This is a follow up to #1857 and #1858, we are now at a point where we have enough in place that we can start leaning further into the state and reduce overall code. This is now a meaningful reduction in code size and should be in a good place to make implementing a new config for "polymorphic" model serialization for serialize_as_any issues.

Related issue number

N/A

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

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 25, 2025

CodSpeed Performance Report

Merging #1859 will not alter performance

Comparing dh/ser-state-include-exclude (2d1a2b3) with main (49b72b2)

Summary

✅ 163 untouched

@davidhewitt davidhewitt enabled auto-merge (squash) October 25, 2025 21:06
@davidhewitt davidhewitt merged commit 570d448 into main Oct 25, 2025
31 checks passed
@davidhewitt davidhewitt deleted the dh/ser-state-include-exclude branch October 25, 2025 21:13
davidhewitt added a commit to pydantic/pydantic that referenced this pull request Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants