We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11337f9 commit 40ad0e8Copy full SHA for 40ad0e8
1 file changed
src/paho/mqtt/client.py
@@ -470,7 +470,7 @@ def _force_bytes(s: str | bytes | bytearray) -> bytes | bytearray:
470
return s
471
472
473
-def _encode_payload(payload: str | bytes | bytearray | int | float | None) -> bytes|bytearray:
+def _encode_payload(payload: str | bytes | bytearray | int | float | None) -> bytes | bytearray:
474
if isinstance(payload, str):
475
return payload.encode("utf-8")
476
@@ -3373,7 +3373,7 @@ def _send_publish(
3373
self,
3374
mid: int,
3375
topic: bytes,
3376
- payload: bytes|bytearray = b"",
+ payload: bytes | bytearray = b"",
3377
qos: int = 0,
3378
retain: bool = False,
3379
dup: bool = False,
0 commit comments