From 1e95e19f16bc956d7a78960dc1d5d8829dfd0899 Mon Sep 17 00:00:00 2001 From: Gilles Boccon-Gibod Date: Tue, 10 Jun 2025 13:31:56 -0400 Subject: [PATCH] tighten type bounds --- bumble/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumble/device.py b/bumble/device.py index 1051909..f935af4 100644 --- a/bumble/device.py +++ b/bumble/device.py @@ -1885,7 +1885,7 @@ class Connection(utils.CompositeEventEmitter): def data_packet_queue(self) -> DataPacketQueue | None: return self.device.host.get_data_packet_queue(self.handle) - def cancel_on_disconnection(self, awaitable: Awaitable) -> Awaitable[_T]: + def cancel_on_disconnection(self, awaitable: Awaitable[_T]) -> Awaitable[_T]: """ Helper method to call `utils.cancel_on_event` for the 'disconnection' event """