

@staticmethod
def unused_variable_message(variable_name, op_name):
    if op_name:
        return 'Variable "${}" is never used in operation "{}".'.format(variable_name, op_name)
    return 'Variable "${}" is never used.'.format(variable_name)

dataset/ETHPy150Open graphql-python/graphql-core/graphql/core/validation/rules/no_unused_variables.py NoUnusedVariables.unused_variable_message/original