Skip to content

Commit 68f0953

Browse files
committed
QA: Apply ruff suggestion.
1 parent 89f346b commit 68f0953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/mqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def on_connect(client, userdata, flags, rc):
4545
def on_message(client, userdata, msg):
4646

4747
data = msg.payload
48-
if type(data) is bytes:
48+
if isinstance(data, bytes):
4949
data = data.decode('utf-8')
5050
data = data.split(',')
5151
command = data.pop(0)

0 commit comments

Comments
 (0)