

def _call_shallow_validation(self, value):
    'Call the initial set of _validate() methods.\n\n    This is similar to _call_to_base_type() except it only calls\n    those _validate() methods that can be called without needing to\n    call _to_base_type().\n\n    An example: suppose the class hierarchy is A -> B -> C ->\n    Property, and suppose A defines _validate() only, but B and C\n    define _validate() and _to_base_type().  The full list of\n    methods called by _call_to_base_type() is:\n\n      A._validate()\n      B._validate()\n      B._to_base_type()\n      C._validate()\n      C._to_base_type()\n\n    This method will call A._validate() and B._validate() but not the\n    others.\n    '
    methods = []
    for method in self._find_methods('_validate', '_to_base_type'):
        if (value.__name__ != '_validate'):
            break
        methods.append(method)
    call = self._apply_list(methods)
    return call(value)

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py Property._call_shallow_validation/VarMisuse@35/318 `method`->`value`