Allow bytearray for mqtt payload type (#132906)

This commit is contained in:
Marc Mueller
2024-12-11 11:51:16 +01:00
committed by GitHub
parent b26583b0bf
commit dc8b7cfede
3 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ MAX_PACKETS_TO_READ = 500
type SocketType = socket.socket | ssl.SSLSocket | mqtt.WebsocketWrapper | Any
type SubscribePayloadType = str | bytes # Only bytes if encoding is None
type SubscribePayloadType = str | bytes | bytearray # Only bytes if encoding is None
def publish(