1) I'm running into a problem with my script using arguments parsed with argparse.ArgumentParser
so I'd like to be able to check typing of my script but when I add some arguments, I get a unrecognized arguments: --import_dir /tmp/someDir/
running
mypy myscript.py --import_dir /tmp/someDir
it seems that the arguments are passed to mypy
and not myscript.py
. Is there a way to get rid of that?
2) More than that, I'm using pyenv to set my version of python to be able to have types on a debian stable system. So if I run only my python script without arguments, I run into a Variable annotation syntax is only supported in Python 3.6 and greater
problem because the system version is the stable debian version.