Skip to content

Commit 79c36e0

Browse files
committed
drivers: Standardize class inheritance to class Foo(object).
1 parent f3bf1a0 commit 79c36e0

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

lib/apds9960/apds9960/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from time import sleep
55

66

7-
class APDS9960:
7+
class APDS9960(object):
88
class GestureData:
99
def __init__(self):
1010
self.u_data = [0] * 32

lib/bq27441/bq27441/device.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# Parameters for the current() function, to specify which current to read
1111
# current_measure types
12-
class CurrentMeasureType:
12+
class CurrentMeasureType(object):
1313
AVG = 0 # Average Current (DEFAULT)
1414
STBY = 1 # Standby Current
1515
MAX = 2 # Max Current
@@ -19,7 +19,7 @@ def __init__(self, value):
1919

2020

2121
# Parameters for the capacity() function, to specify which capacity to read
22-
class CapacityMeasureType:
22+
class CapacityMeasureType(object):
2323
REMAIN = 0 # Remaining Capacity (DEFAULT)
2424
FULL = 1 # Full Capacity
2525
AVAIL = 2 # Available Capacity
@@ -35,7 +35,7 @@ def __init__(self, value):
3535

3636

3737
# Parameters for the soc() function
38-
class SocMeasureType:
38+
class SocMeasureType(object):
3939
FILTERED = 0 # State of Charge Filtered (DEFAULT)
4040
UNFILTERED = 1 # State of Charge Unfiltered
4141

@@ -44,7 +44,7 @@ def __init__(self, value):
4444

4545

4646
# Parameters for the soh() function
47-
class SohMeasureType:
47+
class SohMeasureType(object):
4848
PERCENT = 0 # State of Health Percentage (DEFAULT)
4949
SOH_STAT = 1 # State of Health Status Bits
5050

@@ -53,7 +53,7 @@ def __init__(self, value):
5353

5454

5555
# Parameters for the temperature() function
56-
class TempMeasureType:
56+
class TempMeasureType(object):
5757
BATTERY = 0 # Battery Temperature (DEFAULT)
5858
INTERNAL_TEMP = 1 # Internal IC Temperature
5959

@@ -62,15 +62,15 @@ def __init__(self, value):
6262

6363

6464
# Parameters for the setGPOUTFunction() funciton
65-
class GpoutFunctionType:
65+
class GpoutFunctionType(object):
6666
SOC_INT = 0 # Set GPOUT to SOC_INT functionality
6767
BAT_LOW = 1 # Set GPOUT to BAT_LOW functionality
6868

6969
def __init__(self, value):
7070
self.value = value
7171

7272

73-
class BQ27441:
73+
class BQ27441(object):
7474
"""BQ27441 class contains all major and minor functions use to read and control
7575
the fuel gauge ic"""
7676

lib/ssd1327/ssd1327/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import framebuf
55

66

7-
class SSD1327:
7+
class SSD1327(object):
88
def __init__(self, width=128, height=128):
99
self.width = width
1010
self.height = height

lib/vl53l1x/vl53l1x/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
)
9898

9999

100-
class VL53L1X:
100+
class VL53L1X(object):
101101
def __init__(self, i2c, address=0x29):
102102
self.i2c = i2c
103103
self.address = address

lib/wsen-hids/wsen_hids/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
)
1010

1111

12-
class WSEN_HIDS:
12+
class WSEN_HIDS(object):
1313
"""
1414
MicroPython driver for the WSEN-HIDS 2525020210001.
1515

lib/wsen-pads/wsen_pads/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from wsen_pads.exceptions import *
55

66

7-
class WSEN_PADS:
7+
class WSEN_PADS(object):
88
"""
99
MicroPython driver for the Würth Elektronik WSEN-PADS pressure sensor.
1010

0 commit comments

Comments
 (0)