diff --git a/adafruit_display_shapes/sparkline.py b/adafruit_display_shapes/sparkline.py index 859b5f7..4437f34 100644 --- a/adafruit_display_shapes/sparkline.py +++ b/adafruit_display_shapes/sparkline.py @@ -98,6 +98,7 @@ def add_value(self, value): self._spark_list.append(value) self.update() + # pylint: disable=no-else-return @staticmethod def _xintercept( x1, y1, x2, y2, horizontalY @@ -119,7 +120,7 @@ def _plotLine(self, x1, last_value, x2, value, yBottom, yTop): y1 = int(self.height * (yTop - last_value) / (yTop - yBottom)) self.append(Line(x1, y1, x2, y2, self.color)) # plot the line - # pylint: disable=invalid-name, too-many-branches + # pylint: disable=invalid-name, too-many-branches, too-many-nested-blocks def update(self): """Update the drawing of the sparkline