from functools import wraps
def test(func):
@wraps(func)
def inner_func():
inner_obj = "inner_obj"
print(inner_obj)
return func()
return inner_func
@test
def test_func():
return False
a = test_func ()
print (a)
I want to get the inner_obj variable of the decorator in test_func. Excuse me