-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Drop support for running with Python 3.9 #20156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,15 @@ | |
|
|
||
| ## Next Release | ||
|
|
||
| ### Drop Support for Python 3.9 | ||
|
|
||
| Mypy no longer supports running with Python 3.9, which has reached end-of-life. | ||
| When running mypy with Python 3.10+, it is still possible to type check code | ||
| that needs to support Python 3.9 with the `--python-version 3.9` argument. | ||
| Support for this will be dropped in the first half of 2026! | ||
|
|
||
| Contributed by Marc Mueller (PR [20156](https://github.com/python/mypy/pull/20156)). | ||
|
Comment on lines
+5
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I reused the changelog entry from dropping Python 3.8 here. Just adjusted the numbers :) |
||
|
|
||
| ## Mypy 1.18.1 | ||
|
|
||
| We’ve just uploaded mypy 1.18.1 to the Python Package Index ([PyPI](https://pypi.org/project/mypy/)). | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,6 +71,9 @@ def test_python_evaluation(testcase: DataDrivenTestCase, cache_dir: str) -> None | |
| return | ||
| mypy_cmdline.extend(additional_flags) | ||
|
|
||
| if "--no-force-union-syntax" not in mypy_cmdline: | ||
| mypy_cmdline.append("--force-union-syntax") | ||
|
Comment on lines
+74
to
+75
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding this here temporarily. Without it the output of a lot of pythoneval test would change now that these are run with I plan to update the test outputs to use the PEP 604 union syntax in separate PRs later. |
||
|
|
||
| # Write the program to a file. | ||
| program = "_" + testcase.name + ".py" | ||
| program_path = os.path.join(test_temp_dir, program) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this should be removed, is there a reason to do so?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far we've tested a subset of versions with
mypyc-compiledand without. In particularThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should also change the test_mypyc: true