Skip to content
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

Merged
merged 7 commits into from
Jul 15, 2023
Merged

Bump PYTHON3_VERSION_MIN to 3.7 #15668

merged 7 commits into from
Jul 15, 2023

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jul 14, 2023

Closes #15665

mypy/semanal.py Outdated Show resolved Hide resolved
test-data/unit/check-modules.test Outdated Show resolved Hide resolved
test-data/unit/check-modules.test Outdated Show resolved Hide resolved
test-data/unit/check-newsyntax.test Show resolved Hide resolved
test-data/unit/check-newsyntax.test Show resolved Hide resolved
test-data/unit/check-newsyntax.test Show resolved Hide resolved
test-data/unit/check-newsyntax.test Show resolved Hide resolved
test-data/unit/check-union-or-syntax.test Show resolved Hide resolved
test-data/unit/check-union-or-syntax.test Outdated Show resolved Hide resolved
test-data/unit/check-union-or-syntax.test Show resolved Hide resolved
@github-actions

This comment has been minimized.

@sobolevn
Copy link
Member Author

Thanks for the quick review, addressed!

@github-actions

This comment has been minimized.

Copy link
Member

@AlexWaygood AlexWaygood left a 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 🚀

@sobolevn sobolevn marked this pull request as ready for review July 14, 2023 10:12
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

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]

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump PYTHON3_VERSION_MIN
4 participants