Skip to content

v0.9.0

Compare
Choose a tag to compare
@art049 art049 released this 25 Sep 16:28
· 93 commits to master since this release

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)