Skip to content

Commit

Permalink
Fixed remaining lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
theolind committed May 4, 2017
1 parent ad17f81 commit c07773d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mysensors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ class MySensorsJSONEncoder(json.JSONEncoder):

def default(self, obj):
"""Serialize obj into JSON."""
# pylint: disable=method-hidden, protected-access
# pylint: disable=method-hidden, protected-access, arguments-differ
if isinstance(obj, Sensor):
return {
'sensor_id': obj.sensor_id,
Expand Down
2 changes: 2 additions & 0 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ reports=no
# Reasons disabled:
# locally-disabled - it spams too much
# duplicate-code - unavoidable
# E1129 - https://github.com/PyCQA/pylint/issues/782 (breaks linting for python 2.5)
disable=
locally-disabled,
duplicate-code,
E1129,
3 changes: 1 addition & 2 deletions tests/test_mysensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,7 @@ def default(self, obj): # pylint: disable=E0202
'type': obj.type,
'values': obj.values,
}
else:
return super().default(obj)
return super().default(obj)


if __name__ == '__main__':
Expand Down

0 comments on commit c07773d

Please sign in to comment.