check_returns_none#

rbc.utils.check_returns_none(func)#

Return True if function return value is always None.

Warning: the result of the check may be false-negative. For instance:

def foo():
    a = None
    return a

check_returns_none(foo) == false