Fix pydantic example to include arbitrary_types_allowed config#1627
Fix pydantic example to include arbitrary_types_allowed config#1627veeceey wants to merge 4 commits intoaio-libs:masterfrom
Conversation
…ibs#1624) The pydantic usage example was missing the required `model_config = ConfigDict(arbitrary_types_allowed=True)` setting, causing a PydanticSchemaGenerationError when users followed the docs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (97.63%) is below the target coverage (100.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #1627 +/- ##
=======================================
Coverage 99.37% 99.37%
=======================================
Files 30 30
Lines 5940 5940
Branches 282 282
=======================================
Hits 5903 5903
Misses 22 22
Partials 15 15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The lint CI was failing because the GitHub Actions runner had stale package indices, causing 404 errors when fetching glib2.0 dependencies of libenchant-2-dev. Adding apt-get update refreshes the package lists before the install. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove trailing underscore from `pydantic_` in the changelog fragment to avoid an RST "Unknown target name" error during the sphinx doc-spelling lint step, since the `_pydantic` hyperlink target is only defined in docs/index.rst. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The Windows CI failure on |
Summary
model_config = ConfigDict(arbitrary_types_allowed=True)setting, causing aPydanticSchemaGenerationErrorwhen users followed the example verbatimConfigDictand setarbitrary_types_allowed=True, and adjusted the prose to mention this requirementWhat changed
docs/index.rst: Updated the pydantic example to include:CHANGES/1624.doc.rst: Added a towncrier changelog fragment for this documentation fix.Test plan
pydantic>=2.0and current yarl