Skip to content

Commit 9dfacab

Browse files
committed
Rename variable for lint.
1 parent e15355f commit 9dfacab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_register/i2c_struct_array.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,16 @@ def __init__(self, register_address, struct_format, count):
9292
self.format = struct_format
9393
self.address = register_address
9494
self.count = count
95-
self.id = "_structarray" + str(register_address)
95+
self.array_id = "_structarray" + str(register_address)
9696

9797
def __get__(self, obj, objtype=None):
9898
# We actually can't handle the indexing ourself due to data descriptor limits. So, we return
9999
# an object that can instead. This object is bound to the object passed in here by its
100100
# initializer and then cached on the object itself. That way its lifetime is tied to the
101101
# lifetime of the object itself.
102-
if not hasattr(obj, self.id):
103-
setattr(obj, self.id, _BoundStructArray(obj, self.address, self.format, self.count))
104-
return getattr(obj, self.id)
102+
if not hasattr(obj, self.array_id):
103+
setattr(obj, self.array_id, _BoundStructArray(obj, self.address, self.format, self.count))
104+
return getattr(obj, self.array_id)
105105

106106
def __set__(self, obj, value):
107107
raise RuntimeError()

0 commit comments

Comments
 (0)