Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09141ec

Browse files
authored
mypy_test.py: Fix argument-parsing for --python-version (#8134)
* mypy_test.py: Fix argument-parsing for `--python-version` * Bump min version required in the README
1 parent a527bf2 commit 09141ec

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ in the `CONTRIBUTING.md` document. In particular, we recommend running with Pyth
1717

1818
## mypy\_test.py
1919

20-
This test requires Python 3.7+. Run using:
20+
This test requires Python 3.8+. Run using:
2121
```
2222
(.venv3)$ python3 tests/mypy_test.py
2323
```

tests/mypy_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
parser.add_argument("-v", "--verbose", action="count", default=0, help="More output")
3737
parser.add_argument("-n", "--dry-run", action="store_true", help="Don't actually run mypy")
3838
parser.add_argument("-x", "--exclude", type=str, nargs="*", help="Exclude pattern")
39-
parser.add_argument("-p", "--python-version", type=str, nargs="*", help="These versions only (major[.minor])")
39+
parser.add_argument("-p", "--python-version", type=str, nargs="*", action="extend", help="These versions only (major[.minor])")
4040
parser.add_argument("--platform", help="Run mypy for a certain OS platform (defaults to sys.platform)")
4141
parser.add_argument("filter", type=str, nargs="*", help="Include pattern (default all)")
4242

0 commit comments

Comments
 (0)