Drop Python 3.9 and 3.10 support - #2074
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2074 +/- ##
==========================================
+ Coverage 83.22% 83.28% +0.05%
==========================================
Files 198 198
Lines 19450 19417 -33
Branches 1058 1056 -2
==========================================
- Hits 16188 16172 -16
+ Misses 3079 3063 -16
+ Partials 183 182 -1 ☔ View full report in Codecov by Harness. |
- Bump minimum Python version to 3.11 in pyproject.toml - Add Python 3.11/3.12/3.13 classifiers - Remove 3.9 and 3.10 from CI test matrix - Update ReadTheDocs to Python 3.12 and Ubuntu 22.04 - Enable ruff linter (UP + F401 rules) in pre-commit; fix duplicate repos key - Update pyupgrade to --py311-plus - Remove sys.version_info >= (3, 11) guards in miot_device.py - Add from __future__ import annotations to descriptors.py to fix Python 3.13 TypeError caused by attrs resolving 'type | None' in class scope where the field named 'type' already holds None - Auto-apply ruff UP fixes across 79 files: Optional[X] to X | None, Union[X, Y] to X | Y, deprecated typing imports, % format strings to f-strings - Update poetry.lock
rytilahti
approved these changes
Jun 27, 2026
rytilahti
left a comment
Owner
There was a problem hiding this comment.
Glad to see these clean ups, thank you!
Owner
|
After getting this merged, maybe also bump all pre commit versions? Or if you prefer, maybe it can be done as part of this to get all the formatting changes in in a single PR? |
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.
Summary
pyproject.tomlrepos:key bug in.pre-commit-config.yaml--py311-plussys.version_info >= (3, 11)guards inmiot_device.pyTypeErrorindescriptors.pyby addingfrom __future__ import annotations(attrs was resolvingtype | Nonein class scope where the field namedtypealready holdsNone)Optional[X]toX | None,Union[X, Y]toX | Y, deprecated typing imports, and%-style format strings to f-stringspoetry.lockTest plan