Python 3.10 is now available in preview.

google.appengine.ext.db.query_descendants

Returns a query for all the descendants of a model instance.

model_instance Model instance to find the descendants of.

Query that will retrieve all entities that have the given model instance

as an ancestor. Unlike normal ancestor queries, this does not include the ancestor itself.