Skip to content

Commit b8ed7cb

Browse files
author
Taiki Komoda
committed
fix for linting
1 parent e73de46 commit b8ed7cb

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

adafruit_irremote.py

+12-4
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,13 @@ class GenericTransmit:
350350
"""
351351

352352
def __init__(
353-
self, header: List[int], one: List[int], zero: List[int], trail: int, *, debug: bool = False
353+
self,
354+
header: List[int],
355+
one: List[int],
356+
zero: List[int],
357+
trail: int,
358+
*,
359+
debug: bool = False
354360
) -> None:
355361
self.header = header
356362
self.one = one
@@ -381,12 +387,14 @@ def transmit(
381387
bits_to_send = nbits
382388

383389
durations = array.array(
384-
"H", [0] * (len(self.header) + bits_to_send * 2 + (0 if self.trail is None else 1))
390+
"H",
391+
[0]
392+
* (len(self.header) + bits_to_send * 2 + (0 if self.trail is None else 1))
385393
)
386-
394+
387395
for i, _ in enumerate(self.header):
388396
durations[i] = self.header[i]
389-
397+
390398
if self.trail is not None:
391399
durations[-1] = self.trail
392400
out = len(self.header)

0 commit comments

Comments
 (0)