forked from auracaster/bumble_mirror
Fix missing type hints on Device.notify_subscribers()
Add type hints for all arguments. Otherwise static checkers complain when you try to use it.
This commit is contained in:
@@ -5173,7 +5173,7 @@ class Device(utils.CompositeEventEmitter):
|
|||||||
await self.gatt_server.notify_subscriber(connection, attribute, value, force)
|
await self.gatt_server.notify_subscriber(connection, attribute, value, force)
|
||||||
|
|
||||||
async def notify_subscribers(
|
async def notify_subscribers(
|
||||||
self, attribute: Attribute, value=None, force=False
|
self, attribute: Attribute, value: Optional[Any] = None, force: bool = False
|
||||||
) -> None:
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Send a notification to all the subscribers of an attribute.
|
Send a notification to all the subscribers of an attribute.
|
||||||
|
|||||||
Reference in New Issue
Block a user