Skip to content

adafruit_bno055.py is failing pylint #59

Closed
@evaherrada

Description

@evaherrada

See Actions run

************* Module adafruit_bno055
adafruit_bno055.py:137:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
adafruit_bno055.py:141:17: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)

Here are the 2 methods that are failing:
Method 1

136    def __init__(self, register_address, struct_format, scale):
137        super(_ScaledReadOnlyStruct, self).__init__(register_address, struct_format)
138        self.scale = scale

Method 2

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

Should I remove the arguments and then try getting it to work that way or should I just add a pylint disable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions