I am writing a class where I would like to pass function as a class attribute and later use it, like that:
def fun1(x): return x+1 class A: def __ini