-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Bump PYTHON3_VERSION_MIN
to 3.7
#15668
Conversation
This comment has been minimized.
This comment has been minimized.
Thanks for the quick review, addressed! |
This comment has been minimized.
This comment has been minimized.
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.
LGTM! One failing test left to resolve 🚀
This comment has been minimized.
This comment has been minimized.
Diff from mypy_primer, showing the effect of this PR on open source code: pybind11 (https://github.com/pybind/pybind11): typechecking got 8.25x slower (1.8s -> 15.1s)
(Performance measurements are based on a single noisy sample)
+ pyproject.toml: [mypy]: python_version: Python 3.6 is not supported (must be 3.7 or higher)
+ setup.py:99: error: Class cannot subclass "sdist" (has type "Any") [misc]
- /tmp/mypy_primer/projects/_pybind11_venv/lib/python3.10/site-packages/markdown_it/common/utils.py:106: error: Assignment expressions are only supported in Python 3.8 and greater [syntax]
+ pybind11/setup_helpers.py:69: error: Unused "type: ignore" comment [unused-ignore]
+ pybind11/setup_helpers.py:70: error: Unused "type: ignore" comment [unused-ignore]
+ pybind11/setup_helpers.py:87: error: Class cannot subclass "_Extension" (has type "Any") [misc]
+ pybind11/setup_helpers.py:269: error: Class cannot subclass "_build_ext" (has type "Any") [misc]
|
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.
Nice cleanup, thanks!
Closes #15665