PyMongo 4.15.3 Released

We are pleased to announce the 4.15.3 release of PyMongo. This is a bugfix release that addresses the following:

  • Fixed a memory leak when raising bson.errors.InvalidDocument with C extensions.
  • Fixed the return type of the pymongo.asynchronous.collection.AsyncCollection.distinct,
    pymongo.synchronous.collection.Collection.distinct, pymongo.asynchronous.cursor.AsyncCursor.distinct,
    and pymongo.asynchronous.cursor.AsyncCursor.distinct methods.