Breaking Changes
- msgspec nullable annotated fields now place
NoneoutsideAnnotated- Formsgspec.Structmodels, nullable fields that carryMeta/Annotatedconstraints no longer wrap the type inOptionalinside theAnnotated[...]. TheNonemember is now emitted as a separate union arm outside theAnnotatedwrapper, which changes the generated type hints and the resulting imports (Optionalis dropped when no longer needed). This is required for the generated models to validate correctly at runtime under msgspec, but it changes output for existing users. (#3495)
# Before
from typing import Annotated, Optional, Union
name: Union[Annotated[Optional[str], Meta(max_length=5)], UnsetType] = UNSET
# After
from typing import Annotated, Union
name: Union[Annotated[str, Meta(max_length=5)], None, UnsetType] = UNSETWhat's Changed
- Update CHANGELOG for 0.65.1 by @dcg-generated-docs[bot] in #3492
- Add MCP Python SDK to Used by list by @koxudaxi in #3494
- Fix msgspec payload runtime compatibility by @koxudaxi in #3495
- Reorder Used by projects by @koxudaxi in #3496
- Fix docs workflow zensical invocation by @koxudaxi in #3497
- Bump the github-actions group with 19 updates by @dependabot[bot] in #3490
- Automate release benchmark docs by @koxudaxi in #3498
- Create release benchmark data PRs by @koxudaxi in #3500
- Update release benchmark data by @dcg-generated-docs[bot] in #3501
Full Changelog: 0.65.1...0.66.0