github art049/odmantic v0.9.0

latest releases: v1.0.2, v1.0.1, v1.0.0...
2 years ago

Added

  • Create new generic types to support generic collection types (#240 by @erny & @art049)

    Thus, it's now possible to define models like this in python 3.9+ 🚀:

    class User(Model):
        scopes: list[str]
        friendsIds: list[ObjectId]
        skills: set[str]
  • Allow using generators with in_ and not_in (#270 by @art049)

Fixed

  • Fix EmbeddedModel generics definition with a custom key_name (#269 by @art049)

  • Raise a TypeError when defining a Reference in a generic(List, Dict, Tuple, ...) containing EmbeddedModels (#269 by @art049)

Don't miss a new odmantic release

NewReleases is sending notifications on new releases.