WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Releases: drivendataorg/sortedcontainers-pydantic

v2.0.0

18 Apr 06:55
286a4c5

Choose a tag to compare

  • Added SortedDictPydanticAnnotation, SortedListPydanticAnnotation, and SortedSetPydanticAnnotation special annotation objects. These can be attached to sortedcontainers' original classes using typing.Annotated to enable Pydantic validation and serialization. See approach 2 in the README for further details.
  • Added AnnotatedSortedDict, AnnotatedSortedList, and AnnotatedSortedSet type aliases that can also be used to enable Pydantic validation and serialization. See approach 3 in the README for further details.
  • Added support for setting a key function for custom sorting using the Key special annotation object with typing.Annotated. See the relevant section in the README for futher details.
  • Added new class SortedKeyList. This is a subclass of both sortedcontainers.SortedKeyList and sortedcontainers_pydantic.SortedList. When using Key with sortedcontainers_pydantic.SortedList, this class will be returned, which is analogous to the behavior with sortedcontainers.SortedList and sortedcontainers.SortedKeyList.
  • Removed support for Python 3.8.

v1.0.0

20 Mar 17:43
605fbad

Choose a tag to compare

Initial release! 🎉