Skip to content

Commit 4737e82

Browse files
committed
QA: Apply ruff suggestion.
1 parent 63be336 commit 4737e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

icp10125/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self, address=None):
5454
self.read_otp()
5555

5656
def rdwr(self, command, length=0, delay=0):
57-
if type(command) is int:
57+
if isinstance(command, int):
5858
msg_w = i2c_msg.write(self.address, struct.pack(">H", command))
5959
else:
6060
msg_w = i2c_msg.write(self.address, command)

0 commit comments

Comments
 (0)