I would like to get proper linting and type hints by [PyFlakes, Pylint] and mypy.
For example, in the following code, we cannot get type error for the last line.
We cannot even know if float_input exists.
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--float_input', type=float)
args = parser.parse_args()
def int_sum(a: int, b: int):
return a + b
c = int_sum(args.float_input, args.float_input)
Is there a good way to improve this?