From 09f0adbe7f69d6caaddd848e85d6faa53f30aeec Mon Sep 17 00:00:00 2001 From: Nash Aschenbath Date: Sun, 22 Nov 2026 11:18:01 +0800 Subject: [PATCH] Document the Pydantic integration companion package --- README.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.rst b/README.rst index ba74b8c..f0a74fc 100644 --- a/README.rst +++ b/README.rst @@ -141,6 +141,17 @@ Containers`_. >>> help(SortedDict) >>> help(SortedDict.popitem) +Pydantic Integration +-------------------- + +The separately maintained `sortedcontainers-pydantic`_ package provides +``SortedDict``, ``SortedList``, and ``SortedSet`` classes that support Pydantic +model validation and serialization. Import these classes from +``sortedcontainers_pydantic`` when using them in Pydantic models. See the +package's documentation for installation instructions and examples. + +.. _`sortedcontainers-pydantic`: https://github.com/drivendataorg/sortedcontainers-pydantic + Documentation -------------