Skip to content

Commit 784e30d

Browse files
committed
linting
1 parent 5e6bd54 commit 784e30d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_display_shapes/triangle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class Triangle(Polygon):
5959
:param outline: The outline of the triangle. Can be a hex value for a color or
6060
``None`` for no outline.
6161
"""
62+
# pylint: disable=too-many-locals
6263
def __init__(self, x0, y0, x1, y1, x2, y2, *, fill=None, outline=None):
6364
# Sort coordinates by Y order (y2 >= y1 >= y0)
6465
if y0 > y1:
@@ -97,7 +98,7 @@ def __init__(self, x0, y0, x1, y1, x2, y2, *, fill=None, outline=None):
9798
self._line(point_a[0] - min(xs), point_a[1] - y0,
9899
point_b[0] - min(xs), point_b[1] - y0, 1)
99100

100-
# pylint: disable=invalid-name, too-many-locals, too-many-branches
101+
# pylint: disable=invalid-name, too-many-branches
101102
def _draw_filled(self, x0, y0, x1, y1, x2, y2):
102103
if y0 == y2: # Handle awkward all-on-same-line case as its own thing
103104
a = x0

0 commit comments

Comments
 (0)