Add ruff rule PIE808 (#113621)
This commit is contained in:
parent
1a70dbfd94
commit
d5fd005db8
42 changed files with 61 additions and 69 deletions
|
@ -185,7 +185,7 @@ class BaseStructPlatform(BasePlatform, RestoreEntity):
|
|||
"""Do swap as needed."""
|
||||
if slave_count:
|
||||
swapped = []
|
||||
for i in range(0, self._slave_count + 1):
|
||||
for i in range(self._slave_count + 1):
|
||||
inx = i * self._slave_size
|
||||
inx2 = inx + self._slave_size
|
||||
swapped.extend(self._swap_registers(registers[inx:inx2], 0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue