Add ruff rule PIE808 (#113621)

This commit is contained in:
Sid 2024-03-17 09:56:26 +01:00 committed by GitHub
parent 1a70dbfd94
commit d5fd005db8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 61 additions and 69 deletions

View file

@ -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))