I have a function like below,
def run_the_f(f):
# run f function after some validation
Based on some condition, the signature of f function changes like f(1.0), f(1.0,2.0), f(1.0,2.0,3.0,..). In other words, the number of input arguments can be varying in f similar to udf f in pyspark.
I am using mypy and I tried below which is failing,
def run_the_f(f: Callable[[*float],float]):
# run f after some validation
Can someone support in what to fill in the Callable?