Skip to content

📝 Update "Union or anyOf" section in docs/en/docs/tutorial/extra-models.md#14939

Open
lkkmpn wants to merge 3 commits intofastapi:masterfrom
lkkmpn:update-extra-models-doc
Open

📝 Update "Union or anyOf" section in docs/en/docs/tutorial/extra-models.md#14939
lkkmpn wants to merge 3 commits intofastapi:masterfrom
lkkmpn:update-extra-models-doc

Conversation

@lkkmpn
Copy link

@lkkmpn lkkmpn commented Feb 18, 2026

#14932 updated the source example on (among others) the Extra Models docs page, but the text still refers to the old example.

@github-actions github-actions bot added the docs Documentation about how to use FastAPI label Feb 18, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

Copy link
Member

@YuriiMotov YuriiMotov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
@lkkmpn, thanks!

Code example was probably updated automatically by ruff.
But the bar-syntax works well with response_model in latest releases of Python 3.10+, so we don't need that clarification anymore.

@YuriiMotov YuriiMotov changed the title 📝 Update doc to reflect source example 📝 Update "Union or anyOf" section in docs/en/docs/tutorial/extra-models.md Feb 18, 2026
Co-authored-by: Motov Yurii <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation about how to use FastAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants