def is_result_proxy(obj):
    # Use type() instead of isinstance() to avoid the evaluation of the
    # ResultProxy if the object is indeed a proxy.
    return type(obj) is ResultProxy
Use this to check if a value is a result proxy without evaluating it.
dataset/ETHPy150Open severb/flowy/flowy/result.py/is_result_proxy