pylint-errors

R1703 (simplifiable-if-statement)

:x: Problematic code:

def bigger(bar, baz):
    if bar > baz:
        bigger = True
    else:
        bigger = False

    return bigger

:heavy_check_mark: Correct code:

def bigger(bar, baz):
    return bar > baz

Rationale:

Used when an if statement can be replaced with bool(test).