Skip to content

Bump PyO3 to 0.28, jiter to 0.13 - #12767

Merged
davidhewitt merged 3 commits into
mainfrom
dh/pyo3-0.28
Feb 2, 2026
Merged

davidhewitt merged 3 commits into
mainfrom
dh/pyo3-0.28

Conversation

@davidhewitt

@davidhewitt davidhewitt commented Feb 2, 2026 •

Copy link
Copy Markdown
Contributor

Change Summary

Bumps PyO3 to 0.28. Main changes:

  • #[pyclass] types have automatic FromPyObject implementations being phased out (the deprecation is accepted by the skip_from_py_object option).
  • error messages on cast() errors now mention "is not an instance of", which should be clearer to users
  • PyBackedStr now has a cheap as_py_str() conversion and some other cleanups which allow us to use it in fields HashMap (avoiding more String copies on schema build)

Related issue number

N/A

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@github-actions github-actions Bot added the relnotes-fix Used for bugfixes. label Feb 2, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Feb 2, 2026 •

Copy link
Copy Markdown

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3590896
Status: ✅  Deploy successful!
Preview URL: https://fd23515a.pydantic-docs.pages.dev
Branch Preview URL: https://dh-pyo3-0-28.pydantic-docs.pages.dev

View logs

@codspeed

codspeed Bot commented Feb 2, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 14.62%

❌ 1 regressed benchmark
✅ 211 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ test_simple_recursive_model_schema_generation 617.6 µs 723.4 µs -14.62%

Comparing dh/pyo3-0.28 (3590896) with main (041f8bd)

Open in CodSpeed

@github-actions

github-actions Bot commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

@davidhewitt davidhewitt added relnotes-packaging Used for dependency changes. and removed relnotes-fix Used for bugfixes. labels Feb 2, 2026
@davidhewitt
davidhewitt requested a review from Viicos February 2, 2026 14:04
@davidhewitt

Copy link
Copy Markdown
Contributor Author

Perf regression looks like unrelated volatility.

@Viicos Viicos changed the title bump PyO3 to 0.28, jiter to 0.13 Bump PyO3 to 0.28, jiter to 0.13 Feb 2, 2026
@davidhewitt
davidhewitt merged commit c42224a into main Feb 2, 2026
68 of 69 checks passed
@davidhewitt
davidhewitt deleted the dh/pyo3-0.28 branch February 2, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

relnotes-packaging Used for dependency changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants