def _invoke_binop_inference(instance, opnode, op, other, context, method_name):
    """Invoke binary operation inference on the given instance."""
    methods = dunder_lookup.lookup(instance, method_name)
    context = contextmod.bind_context_to_node(context, instance)
    method = methods[0]
    inferred = next(method.infer(context=context))
    if inferred is util.Uninferable:
        raise exceptions.InferenceError
    return instance.infer_binary_op(opnode, op, other, context, inferred)
def _invoke_binop_inference ( instance , opnode , op , other , context , method_name ) : methods = dunder_lookup . lookup ( instance , method_name ) context = contextmod . bind_context_to_node ( context , instance ) method = methods [ 0 ] inferred = next ( method . infer ( context = context ) ) if inferred is util . Uninferable : raise exceptions . InferenceError return instance . infer_binary_op ( opnode , op , other , context , inferred )
Invoke binary operation inference on the given instance.