Skip to content

Commit

Permalink
Merge pull request #60 from adafruit/fix-super-call
Browse files Browse the repository at this point in the history
Fixed super call to make pylint happy
  • Loading branch information
siddacious committed Oct 31, 2020
2 parents 7030883 + 6096fd0 commit a716040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_bno055.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@

class _ScaledReadOnlyStruct(Struct): # pylint: disable=too-few-public-methods
def __init__(self, register_address, struct_format, scale):
super(_ScaledReadOnlyStruct, self).__init__(register_address, struct_format)
super().__init__(register_address, struct_format)
self.scale = scale

def __get__(self, obj, objtype=None):
result = super(_ScaledReadOnlyStruct, self).__get__(obj, objtype)
result = super().__get__(obj, objtype)
return tuple(self.scale * v for v in result)

def __set__(self, obj, value):
Expand Down

0 comments on commit a716040

Please sign in to comment.