Apply ruff pyupgrade (UP) fixes for Python 3.12+#7953
Closed
astafan8 wants to merge 2 commits intodrop-python-3.11from
Closed
Apply ruff pyupgrade (UP) fixes for Python 3.12+#7953astafan8 wants to merge 2 commits intodrop-python-3.11from
astafan8 wants to merge 2 commits intodrop-python-3.11from
Conversation
QCoDeS already requires Python >=3.12. This PR updates the CI configuration to match: - Updated pytest.yaml: removed 3.11 from matrix, min-version test now uses 3.12 - Updated docs.yaml: removed 3.11, gh-pages deploy uses 3.12 - Updated upload_to_pypi.yaml: build uses 3.12 - Removed obsolete pyvisa-sim deprecation warning filter (was only needed for 3.11) - Bumped minimum dependency versions: numpy>=1.26.0, pandas>=2.2.3 - Applied ruff safe pyupgrade fixes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Applied ruff unsafe pyupgrade fixes: - UP040: TypeAlias -> PEP 695 type statements - UP046: Generic subclass -> PEP 695 type parameters (where safe) - Added noqa: UP046 for 13 complex multi-inheritance generic classes in the parameter system that cannot be safely auto-converted Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
Merged into #7952 instead. |
8c3c813 to
37ea0ff
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Follow-up to #7952. Applies ruff unsafe pyupgrade fixes:
This should be merged after #7952.