Skip to content

Commit ae9758d

Browse files
Update run_mypy.py (#40546)
To evaluate with 3.9
1 parent 2b5cb05 commit ae9758d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

eng/tox/run_mypy.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
root_dir = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", ".."))
2525

26+
PYTHON_VERSION = "3.9"
27+
2628
if __name__ == "__main__":
2729
parser = argparse.ArgumentParser(description="Run mypy against target folder. ")
2830

@@ -53,13 +55,13 @@
5355

5456
pkg_details = ParsedSetup.from_path(package_dir)
5557
top_level_module = pkg_details.namespace.split(".")[0]
56-
python_version = "3.8"
58+
5759
commands = [
5860
sys.executable,
5961
"-m",
6062
"mypy",
6163
"--python-version",
62-
python_version,
64+
PYTHON_VERSION,
6365
"--show-error-codes",
6466
"--ignore-missing-imports",
6567
]

0 commit comments

Comments
 (0)