

@utils.positional((1 + _positional))
def __init__(self, modelclass, name=None, **kwds):
    super(StructuredProperty, self).__init__(name=name, **kwds)
    if self._repeated:
        if modelclass._has_repeated:
            raise TypeError(('This StructuredProperty cannot use repeated=True because its model class (%s) contains repeated properties (directly or indirectly).' % modelclass.__name__))
    self._modelclass = modelclass

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py StructuredProperty.__init__/original