Skip to content

Apply ruff pyupgrade (UP) fixes for Python 3.12+#7953

Closed
astafan8 wants to merge 2 commits intodrop-python-3.11from
drop-python-3.11-ruff-up-fixes
Closed

Apply ruff pyupgrade (UP) fixes for Python 3.12+#7953
astafan8 wants to merge 2 commits intodrop-python-3.11from
drop-python-3.11-ruff-up-fixes

Conversation

@astafan8
Copy link
Contributor

Changes

Follow-up to #7952. Applies 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

This should be merged after #7952.

Mikhail Astafev and others added 2 commits March 20, 2026 22:49
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>
@astafan8 astafan8 requested a review from jenshnielsen March 20, 2026 21:50
@astafan8
Copy link
Contributor Author

Merged into #7952 instead.

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.

1 participant