Skip to content

Bump PYTHON3_VERSION_MIN to 3.7#15668

Merged
hauntsaninja merged 7 commits intomasterfrom
issue-15665
Jul 15, 2023
Merged

Bump PYTHON3_VERSION_MIN to 3.7#15668
hauntsaninja merged 7 commits intomasterfrom
issue-15665

Conversation

@sobolevn
Copy link
Copy Markdown
Member

@sobolevn sobolevn commented Jul 14, 2023

Closes #15665

Comment thread mypy/semanal.py Outdated
Comment thread test-data/unit/README.md
Comment thread test-data/unit/check-class-namedtuple.test
Comment thread test-data/unit/check-generic-alias.test
Comment thread test-data/unit/check-modules.test Outdated
Comment thread test-data/unit/check-modules.test Outdated
Comment thread test-data/unit/check-newsyntax.test
Comment thread test-data/unit/check-newsyntax.test
Comment thread test-data/unit/check-newsyntax.test
Comment thread test-data/unit/check-newsyntax.test
Comment thread test-data/unit/check-union-or-syntax.test
Comment thread test-data/unit/check-union-or-syntax.test Outdated
Comment thread test-data/unit/check-union-or-syntax.test
@github-actions

This comment has been minimized.

@sobolevn
Copy link
Copy Markdown
Member Author

Thanks for the quick review, addressed!

@github-actions

This comment has been minimized.

Copy link
Copy Markdown
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.

Comment thread test-data/unit/parse-errors.test Outdated
@sobolevn sobolevn requested review from JukkaL and hauntsaninja July 15, 2023 07:14
@github-actions
Copy link
Copy Markdown
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
Copy Markdown
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