Skip to content

Commit 766da4a

Browse files
committed
Don't redefne builtin
1 parent cd9ed20 commit 766da4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_ble_beacon.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def uuid(self) -> bytes:
8585
raise NotImplementedError("Must be implemented in beacon subclass")
8686

8787
@uuid.setter
88-
def uuid(self, id: bytes) -> None:
88+
def uuid(self, uuid: bytes) -> None:
8989
raise NotImplementedError("Must be implemented in beacon subclass")
9090

9191
@property
@@ -138,8 +138,8 @@ def uuid(self) -> bytes:
138138
return struct.pack(">QQ", uuid_msb, uuid_lsb)
139139

140140
@uuid.setter
141-
def uuid(self, id: bytes) -> None:
142-
uuid_msb, uuid_lsb = struct.unpack(">QQ", id)
141+
def uuid(self, uuid: bytes) -> None:
142+
uuid_msb, uuid_lsb = struct.unpack(">QQ", uuid)
143143
self._set_struct_index(3, uuid_msb)
144144
self._set_struct_index(4, uuid_lsb)
145145

0 commit comments

Comments
 (0)