Set the specific Python version, e.g. ``3.5``.
args = ["-m", "mypy"]
if language.lower() == "python 2":
args.append("--py2")
elif language.lower() not in ("python 3", "python"):
// Ideally, this would fail the check, but there"s no good
After Change
Set the specific Python version, e.g. ``3.5``.
args = ["-m", "mypy"]
if "python 2" in language:
args.append("--py2")
elif "python 3" not in language:
// Ideally, this would fail the check, but there"s no good