Skip to content

Commit 4e5ca10

Browse files
committed
QA: Apply ruff suggestions.
1 parent 31b27eb commit 4e5ca10

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

examples/bargraph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import sys
32
import time
43

tests/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(self, i2c_bus):
5757
self.regs[0x04] = 0x02 # Control Register
5858

5959
# Prime the Calibrated Data registers with fake data
60-
self.regs[0x14:24] = [ord(c) if type(c) is str else c for c in struct.pack(
60+
self.regs[0x14:24] = [ord(c) if isinstance(c, str) else c for c in struct.pack(
6161
'>ffffff',
6262
*reversed(CALIBRATED_VALUES)
6363
)]

0 commit comments

Comments
 (0)