Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes discriminated union bug regression when using enums #1286

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kfreezen
Copy link

@kfreezen kfreezen commented May 2, 2024

Change Summary

Fixes regression documented in pydantic/pydantic#9235, which was introduced in upgrade to pyo3 v0.21

Related issue number

pydantic/pydantic#9235

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

Selected Reviewer: @dmontagu

@kfreezen
Copy link
Author

kfreezen commented May 2, 2024

@sydney-runkle should I create a PR removing the xfail in pydantic as well? How do you handle upstream changes like this?

@kfreezen
Copy link
Author

kfreezen commented May 2, 2024

please review

Copy link

codecov bot commented May 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link

codspeed-hq bot commented May 2, 2024

CodSpeed Performance Report

Merging #1286 will not alter performance

Comparing kfreezen:discriminated-union-bug (c60d65c) with main (e1fc99d)

Summary

✅ 155 untouched benchmarks

@kfreezen
Copy link
Author

kfreezen commented May 2, 2024

@dmontagu you know what, I think I got ahead of myself here, I need to finagle a test for this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants