

def _opt_call_to_base_type(self, value):
    'Call _to_base_type() if necessary.\n\n    If the value is a _BaseValue instance, return it unchanged.\n    Otherwise, call all _validate() and _to_base_type() methods and\n    wrap it in a _BaseValue instance.\n    '
    if (not isinstance(value, _BaseValue)):
        value = _BaseValue(self._call_to_base_type(self))
    return value

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py Property._opt_call_to_base_type/VarMisuse@35/137 `value`->`self`