What is the ->
symbol for returning a function from another function?
def OneFunc(x) -> def:
return AnotherFunc
Does not seem to work, neither function
or func
..
What is the ->
symbol for returning a function from another function?
def OneFunc(x) -> def:
return AnotherFunc
Does not seem to work, neither function
or func
..
You want the
Callable
generic type.The parameters to
Callable
depend on the signature of the function you're returning.