Skip to content

Commit deb9a2c

Browse files
author
Margaret Matocha
committed
pylint fixes
1 parent bf0ac9e commit deb9a2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_display_shapes/sparkline.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def add_value(self, value):
9898
self._spark_list.append(value)
9999
self.update()
100100

101+
# pylint: disable=no-else-return
101102
@staticmethod
102103
def _xintercept(
103104
x1, y1, x2, y2, horizontalY
@@ -119,7 +120,7 @@ def _plotLine(self, x1, last_value, x2, value, yBottom, yTop):
119120
y1 = int(self.height * (yTop - last_value) / (yTop - yBottom))
120121
self.append(Line(x1, y1, x2, y2, self.color)) # plot the line
121122

122-
# pylint: disable=invalid-name, too-many-branches
123+
# pylint: disable=invalid-name, too-many-branches, too-many-nested-blocks
123124

124125
def update(self):
125126
"""Update the drawing of the sparkline

0 commit comments

Comments
 (0)