What's Changed
* Simplify shared union serializer logic by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1538
* Tidy up some uses of `Bound<'_, PyString>::to_str` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1544
* Fix serialization inference for `complex` types in `python` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1549
* Bump to PyO3 v0.22.6 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1550
* Fix performance regression for JSON tagged union by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1552
**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.27.0...v2.27.1