

def override(original, results):
    '\n    If a receiver to a signal returns a value, we override the original value\n    with the last returned value.\n\n    :param original: The original value\n    :param results: The results from the signal\n    '
    overrides = [v for (fn, v) in results if (v is not None)]
    if (len(overrides) == 0):
        return original
    return overrides[(- 1)]

dataset/ETHPy150Open ColtonProvias/sqlalchemy-jsonapi/sqlalchemy_jsonapi/flaskext.py override/original