File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 10
10
11
11
# Earliest Python 3.x version supported via --python-version 3.x. To run
12
12
# mypy, at least version PYTHON3_VERSION is needed.
13
- PYTHON3_VERSION_MIN : Final = (3 , 7 ) # Keep in sync with typeshed's python support
13
+ PYTHON3_VERSION_MIN : Final = (3 , 8 ) # Keep in sync with typeshed's python support
14
14
15
15
CACHE_DIR : Final = ".mypy_cache"
16
16
CONFIG_FILE : Final = ["mypy.ini" , ".mypy.ini" ]
Original file line number Diff line number Diff line change @@ -592,7 +592,7 @@ main.py:1: error: Cannot find implementation or library stub for module named "a
592
592
\[tool.mypy]
593
593
python_version = 3.10
594
594
[out]
595
- pyproject.toml: [mypy]: python_version: Python 3.1 is not supported (must be 3.7 or higher). You may need to put quotes around your Python version
595
+ pyproject.toml: [mypy]: python_version: Python 3.1 is not supported (must be 3.8 or higher). You may need to put quotes around your Python version
596
596
== Return code: 0
597
597
598
598
[case testPythonVersionTooOld10]
@@ -604,13 +604,13 @@ python_version = 1.0
604
604
mypy.ini: [mypy]: python_version: Python major version '1' out of range (must be 3)
605
605
== Return code: 0
606
606
607
- [case testPythonVersionTooOld36 ]
607
+ [case testPythonVersionTooOld37 ]
608
608
# cmd: mypy -c pass
609
609
[file mypy.ini]
610
610
\[mypy]
611
- python_version = 3.6
611
+ python_version = 3.7
612
612
[out]
613
- mypy.ini: [mypy]: python_version: Python 3.6 is not supported (must be 3.7 or higher)
613
+ mypy.ini: [mypy]: python_version: Python 3.7 is not supported (must be 3.8 or higher)
614
614
== Return code: 0
615
615
616
616
[case testPythonVersionTooNew40]
@@ -633,11 +633,11 @@ usage: mypy [-h] [-v] [-V] [more options; see below]
633
633
mypy: error: Mypy no longer supports checking Python 2 code. Consider pinning to mypy<0.980 if you need to check Python 2 code.
634
634
== Return code: 2
635
635
636
- [case testPythonVersionAccepted37 ]
636
+ [case testPythonVersionAccepted38 ]
637
637
# cmd: mypy -c pass
638
638
[file mypy.ini]
639
639
\[mypy]
640
- python_version = 3.7
640
+ python_version = 3.8
641
641
[out]
642
642
643
643
[case testPythonVersionAccepted311]
You can’t perform that action at this time.
0 commit comments