Skip to content

Commit d65b797

Browse files
committed
improve type hints for subscribe()
1 parent 62f66f2 commit d65b797

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
@@ -800,7 +800,7 @@ def publish(
800800
f"No data received from broker for {self._recv_timeout} seconds."
801801
)
802802

803-
def subscribe(self, topic: str, qos: int = 0) -> None:
803+
def subscribe(self, topic: Optional[Union[tuple, str, list]], qos: int = 0) -> None:
804804
"""Subscribes to a topic on the MQTT Broker.
805805
This method can subscribe to one topic or multiple topics.
806806

0 commit comments

Comments
 (0)