From c002762ad97f74c4e1e3703726d106276fd54e3b Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Wed, 1 May 2024 10:10:33 +0200 Subject: [PATCH] update impl --- docs/migrations/version-3-to-4.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/migrations/version-3-to-4.md b/docs/migrations/version-3-to-4.md index 525b445ba1..e21906dd62 100644 --- a/docs/migrations/version-3-to-4.md +++ b/docs/migrations/version-3-to-4.md @@ -95,6 +95,10 @@ Console.WriteLine(dateTime2); Models are aiming to be >= v3.7 compliant. +### Unique types in unions + +In v4, unions types are rendered unique, meaning you will never see `str | str` but just `str`. + ### Pydantic now follows v2 instead of v1 Reference: https://docs.pydantic.dev/2.6/migration/