pylint-errors

R1711 (useless-return)

:x: Problematic code:

def foo():
    return None

:heavy_check_mark: Correct code:

def foo():
    pass

Rationale:

Emitted when a single return or return None statement is found at the end of function or method definition. This statement can safely be removed because Python will implicitly return None.