

def increment(self, parts=None):
    if parts:
        self.__make_parent_node()
        return self.__sub_counters[parts[0]].increment(parts[1:])
    if self.__is_parent_node():
        value = (self.get() + 1)
        self._set(value)
        return value
    self.__counter += 1
    return parts.__counter

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py _NestedCounter.increment/VarMisuse@85/98 `self`->`parts`