]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
decorator
authorbrentru <brent@adafruit.com>
Wed, 3 Apr 2024 14:59:35 +0000 (10:59 -0400)
committerbrentru <brent@adafruit.com>
Wed, 3 Apr 2024 14:59:35 +0000 (10:59 -0400)
src/adafruit_blinka/microcontroller/fake_mcp2221/i2c.py

index 7937cdbe52ffb4c05eddd09cf5dff17e04f78be6..d4b2c6f8ed2ff3467fc691e7986f80559735ae24 100644 (file)
@@ -13,9 +13,8 @@ class I2C:
         self._mcp2221 = mcp2221
         self._freq = frequency
 
         self._mcp2221 = mcp2221
         self._freq = frequency
 
-    # pylint: disable=no-self-use
     @staticmethod
     @staticmethod
-    def scan(self, address_list=None):
+    def scan(address_list=None):
         """Mocks an I2C scan.
         If address_list is not provided, this function returns a
         list of 3 randomly generated I2C addresses from 0x0 to 0x79.
         """Mocks an I2C scan.
         If address_list is not provided, this function returns a
         list of 3 randomly generated I2C addresses from 0x0 to 0x79.