Skip to content

Commit 1b48187

Browse files
committed
Updating for pre-commit formatting errors
1 parent f51973b commit 1b48187

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

adafruit_tsl2591.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ def enable(self) -> None:
192192
"""Put the device in a powered, enabled mode."""
193193
self._write_u8(
194194
_TSL2591_REGISTER_ENABLE,
195-
_TSL2591_ENABLE_POWERON
196-
| _TSL2591_ENABLE_AEN,
195+
_TSL2591_ENABLE_POWERON | _TSL2591_ENABLE_AEN,
197196
)
198197

199198
def disable(self) -> None:
@@ -207,9 +206,10 @@ def clear_interrupt(self, operation: int) -> None:
207206
- ``CLEAR_ALL_INTERRUPTS``
208207
- ``CLEAR_PERSIST_INTERRUPT``
209208
"""
210-
assert operation in (CLEAR_INTERRUPT,
211-
CLEAR_ALL_INTERRUPTS,
212-
CLEAR_PERSIST_INTERRUPT,
209+
assert operation in (
210+
CLEAR_INTERRUPT,
211+
CLEAR_ALL_INTERRUPTS,
212+
CLEAR_PERSIST_INTERRUPT,
213213
)
214214
control = (_TSL2591_SPECIAL_BIT | operation) & 0xFF
215215
with self._device as i2c:

0 commit comments

Comments
 (0)