Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion adafruit_display_shapes/sparkline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down