Python 3.9 is now generally available.

google.appengine.datastore.datastore_index.CompositeIndexForGeoQuery

Builds a descriptor for a composite index needed for a geo query.

query A datastore_pb.Query instance.

A tuple in the same form as produced by CompositeIndexForQuery.