Skip to content

Commit 40ad0e8

Browse files
committed
Space out bytes|bytearray
1 parent 11337f9 commit 40ad0e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/paho/mqtt/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def _force_bytes(s: str | bytes | bytearray) -> bytes | bytearray:
470470
return s
471471

472472

473-
def _encode_payload(payload: str | bytes | bytearray | int | float | None) -> bytes|bytearray:
473+
def _encode_payload(payload: str | bytes | bytearray | int | float | None) -> bytes | bytearray:
474474
if isinstance(payload, str):
475475
return payload.encode("utf-8")
476476

@@ -3373,7 +3373,7 @@ def _send_publish(
33733373
self,
33743374
mid: int,
33753375
topic: bytes,
3376-
payload: bytes|bytearray = b"",
3376+
payload: bytes | bytearray = b"",
33773377
qos: int = 0,
33783378
retain: bool = False,
33793379
dup: bool = False,

0 commit comments

Comments
 (0)