Skip to content

docs: fix Pydantic example to include arbitrary_types_allowed#1644

Open
r266-tech wants to merge 1 commit intoaio-libs:masterfrom
r266-tech:fix/pydantic-docs-example
Open

docs: fix Pydantic example to include arbitrary_types_allowed#1644
r266-tech wants to merge 1 commit intoaio-libs:masterfrom
r266-tech:fix/pydantic-docs-example

Conversation

@r266-tech
Copy link
Copy Markdown

What this PR does

Fixes #1624 — the Pydantic example in does not work with Pydantic 2.x because lacks .

Added to make the example immediately usable.

Changes

  • Updated Pydantic example
  • Added changelog fragment

Tested

The Pydantic example in docs/index.rst did not work out of the box
with Pydantic 2.x because URL lacks __get_pydantic_core_schema__.
Added model_config with arbitrary_types_allowed=True to make
the example immediately usable.

Fixes aio-libs#1624
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Mar 22, 2026
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 22, 2026

Merging this PR will not alter performance

✅ 99 untouched benchmarks


Comparing r266-tech:fix/pydantic-docs-example (796223c) with master (148fc70)

Open in CodSpeed

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

Labels

bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: arbitrary_types_allowed needed in Pydantic example

1 participant