def validate_inp(fun):

    def wrapper(inp):
        return fun(inp) if inp else False
return wrapper

@validate_inp
def func(inp):
    return int(inp['value']) + 1
print(func(False))
print(func({'value': 1}))
Looking for idiomatic way to evaluate to False if argument is False in Python 3