Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now available in preview.

google.appengine.api.datastore.NormalizeAndTypeCheckKeys

Normalizes and type checks that the given argument is a valid key or keys.

A wrapper around NormalizeAndTypeCheck() that accepts strings, Keys, and Entities, and normalizes to Keys.

keys a Key or sequence of Keys

A (list of Keys, bool) tuple. See NormalizeAndTypeCheck.

BadArgumentError arg is not an instance or sequence of one of the given types.