Skip to content

Commit f016d34

Browse files
committed
augment type hints for unsubscribe()
1 parent 2cf2f28 commit f016d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ def subscribe(self, topic: Optional[Union[tuple, str, list]], qos: int = 0) -> N
890890
f"invalid message received as response to SUBSCRIBE: {hex(op)}"
891891
)
892892

893-
def unsubscribe(self, topic: str) -> None:
893+
def unsubscribe(self, topic: Optional[Union[str, list]]) -> None:
894894
"""Unsubscribes from a MQTT topic.
895895
896896
:param str|list topic: Unique MQTT topic identifier string or list.

0 commit comments

Comments
 (0)