]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/blobdiff - displayio/_i2cdisplay.py
Linted stuff
[hackapet/Adafruit_Blinka_Displayio.git] / displayio / _i2cdisplay.py
index 63e4af6fa82e327f5d75ddb421d402ece1cd15f8..421fd105c7d3024df692cd688b6d4deddc05e886 100644 (file)
@@ -86,8 +86,8 @@ class I2CDisplay:
         self._send(DISPLAY_COMMAND, CHIP_SELECT_UNTOUCHED, bytes([command] + data))
         self._end_transaction()
 
-    # pylint: disable=unused-argument
     def _send(self, data_type: int, chip_select: int, data: _typing.ReadableBuffer):
+        # pylint: disable=unused-argument
         if data_type == DISPLAY_COMMAND:
             n = len(data)
             if n > 0:
@@ -103,8 +103,6 @@ class I2CDisplay:
             data_bytes[1:] = data
             self._i2c.writeto(self._dev_addr, buffer=data_bytes, stop=True)
 
-    # pylint: enable=unused-argument
-
     def _end_transaction(self) -> None:
         """Release the bus after sending data."""
         self._i2c.unlock()