From 793fcd750c5cbe57803553fc18eab4fd303fc1ae Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 29 Dec 2025 16:03:46 -0600 Subject: [PATCH] Fix missing type hints on Device.notify_subscribers() Add type hints for all arguments. Otherwise static checkers complain when you try to use it. --- bumble/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumble/device.py b/bumble/device.py index 557602cf..73de305c 100644 --- a/bumble/device.py +++ b/bumble/device.py @@ -5173,7 +5173,7 @@ class Device(utils.CompositeEventEmitter): await self.gatt_server.notify_subscriber(connection, attribute, value, force) async def notify_subscribers( - self, attribute: Attribute, value=None, force=False + self, attribute: Attribute, value: Optional[Any] = None, force: bool = False ) -> None: """ Send a notification to all the subscribers of an attribute.