Repository navigation
Require Python 3.11 - #542
Merged
Merged
Conversation
Python 3.10 reached its end of life in October 2026. asyncio.timeout replaces the async_timeout backport.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #542 +/- ##
==========================================
+ Coverage 93.07% 93.16% +0.09%
==========================================
Files 30 30
Lines 5629 5617 -12
Branches 708 705 -3
==========================================
- Hits 5239 5233 -6
+ Misses 267 264 -3
+ Partials 123 120 -3
🚀 New features to boost your workflow:
|
# Conflicts: # pyhap/camera.py # tests/test_camera.py
asyncio.TimeoutError is an alias of the builtin TimeoutError since Python 3.11, and ruff (target 3.11) enforces this via UP041.
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.
Python 3.10 reached its end of life in October 2026. This raises the minimum to 3.11:
requires-python, classifiers, CI matrix, tox, and the ruff and ty targets move to 3.11.asyncio.timeoutreplaces theasync_timeoutbackport, which is no longer a dependency.TimeoutErroris caught directly. On 3.11asyncio.TimeoutErroris the same class.datetime.UTC, and the install guide names 3.11 as the minimum.No behavior change otherwise.
Tested with the full test suite on 3.11 and 3.14, ruff and ty.
AI use: written with the help of an AI coding assistant (Opus 5.5). I reviewed and tested the changes myself (pytest, ruff, ty).