File tree Expand file tree Collapse file tree 3 files changed +1
-11
lines changed Expand file tree Collapse file tree 3 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 3
3
import os
4
4
from typing import Final
5
5
6
- PYTHON2_VERSION : Final = (2 , 7 )
7
-
8
6
# Earliest fully supported Python 3.x version. Used as the default Python
9
7
# version in tests. Mypy wheels should be built starting with this version,
10
8
# and CI tests should be run on this version (and later versions).
Original file line number Diff line number Diff line change @@ -594,14 +594,6 @@ def add_invertible_flag(
594
594
help = "Type check code assuming it will be running on Python x.y" ,
595
595
dest = "special-opts:python_version" ,
596
596
)
597
- platform_group .add_argument (
598
- "-2" ,
599
- "--py2" ,
600
- dest = "special-opts:python_version" ,
601
- action = "store_const" ,
602
- const = defaults .PYTHON2_VERSION ,
603
- help = "Use Python 2 mode (same as --python-version 2.7)" ,
604
- )
605
597
platform_group .add_argument (
606
598
"--platform" ,
607
599
action = "store" ,
Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ def parse_options(
345
345
options .force_union_syntax = True
346
346
347
347
# Allow custom python version to override testfile_pyversion.
348
- if all (flag .split ("=" )[0 ] not in [ "--python-version" , "-2" , "--py2" ] for flag in flag_list ):
348
+ if all (flag .split ("=" )[0 ] != "--python-version" for flag in flag_list ):
349
349
options .python_version = testfile_pyversion (testcase .file )
350
350
351
351
if testcase .config .getoption ("--mypy-verbose" ):
You can’t perform that action at this time.
0 commit comments