@classmethod
  def get(cls, keys):
    results = get(keys)
    if results is None:
      return None

    if isinstance(results, Model):
      instances = [results]
    else:
      instances = results

    for instance in instances:
      if not(instance is None or isinstance(instance, cls)):
        raise KindError('Kind %r is not a subclass of kind %r' %
                        (instance.kind(), cls.kind()))

    return results
Keywords with numeric settings are converted to integers.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/db/__init__.py/Model.get--crossover with--dataset/ETHPy150Open google/grr/grr/parsers/config_file_test.py/SshdConfigTest.testFindNumericValues