Upgrade Python version to 3.10-3.14

This commit is contained in:
Josh Wu
2025-10-21 20:00:10 +08:00
parent 0fa517a4f6
commit 5431941fe7
11 changed files with 20 additions and 42 deletions

View File

@@ -2374,11 +2374,7 @@ class Device(utils.CompositeEventEmitter):
hci.Address.ANY: []
} # Futures, by BD address OR [Futures] for hci.Address.ANY
# In Python <= 3.9 + Rust Runtime, asyncio.Lock cannot be properly initiated.
if sys.version_info >= (3, 10):
self._cis_lock = asyncio.Lock()
else:
self._cis_lock = AsyncExitStack()
self._cis_lock = asyncio.Lock()
# Own address type cache
self.connect_own_address_type = None