Skip to content

Commit 631a977

Browse files
committed
Allow Client._packet_queue to accept bytearray as packet
Fixes: src\paho\mqtt\client.py:3444: error: Argument 2 to "_packet_queue" of "Client" has incompatible type "bytearray"; expected "bytes" [arg-type] src\paho\mqtt\client.py:3572: error: Argument 2 to "_packet_queue" of "Client" has incompatible type "bytearray"; expected "bytes" [arg-type] src\paho\mqtt\client.py:3610: error: Argument 2 to "_packet_queue" of "Client" has incompatible type "bytearray"; expected "bytes" [arg-type] src\paho\mqtt\client.py:3652: error: Argument 2 to "_packet_queue" of "Client" has incompatible type "bytearray"; expected "bytes" [arg-type] src\paho\mqtt\client.py:3701: error: Argument 2 to "_packet_queue" of "Client" has incompatible type "bytearray"; expected "bytes" [arg-type]
1 parent 432d56f commit 631a977

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/paho/mqtt/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3758,7 +3758,7 @@ def _messages_reconnect_reset(self) -> None:
37583758
def _packet_queue(
37593759
self,
37603760
command: int,
3761-
packet: bytes,
3761+
packet: bytes|bytearray,
37623762
mid: int,
37633763
qos: int,
37643764
info: MQTTMessageInfo | None = None,

0 commit comments

Comments
 (0)