Browse Source

Fix pydantic unions section moved

pull/15967/head
Yurii Motov 2 weeks ago
parent
commit
1dc83db0c1
  1. 2
      docs/en/docs/tutorial/extra-models.md

2
docs/en/docs/tutorial/extra-models.md

@ -166,7 +166,7 @@ To do that, use the standard Python type hint [`typing.Union`](https://docs.pyth
/// note
When defining a [`Union`](https://pydantic.dev/docs/validation/latest/concepts/types/#unions), include the most specific type first, followed by the less specific type. In the example below, the more specific `PlaneItem` comes before `CarItem` in `Union[PlaneItem, CarItem]`.
When defining a [`Union`](https://pydantic.dev/docs/validation/latest/concepts/unions/), include the most specific type first, followed by the less specific type. In the example below, the more specific `PlaneItem` comes before `CarItem` in `Union[PlaneItem, CarItem]`.
///

Loading…
Cancel
Save