Skip to content

Commit 599db1b

Browse files
authored
fix for issue #33 with black formatting applied
1 parent 2e7d56f commit 599db1b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

adafruit_gfx/gfx.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
__version__ = "0.0.0+auto.0"
2626
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_GFX.git"
2727

28+
2829
# pylint: disable=invalid-name
2930
class GFX:
3031
# pylint: disable=too-many-instance-attributes
@@ -49,6 +50,7 @@ class GFX:
4950
:param font: An optional input to augment the default text method with a new font.
5051
The input should be a properly formatted dict.
5152
"""
53+
5254
# pylint: disable=too-many-arguments
5355
def __init__(
5456
self,
@@ -280,7 +282,7 @@ def fill_triangle(self, x0, y0, x1, y1, x2, y2, *args, **kwargs):
280282
last = y1 - 1
281283
else:
282284
last = y1
283-
while y <= last:
285+
while y <= last:
284286
a = x0 + sa // dy01
285287
b = x0 + sb // dy02
286288
sa += dx01
@@ -304,7 +306,8 @@ def fill_triangle(self, x0, y0, x1, y1, x2, y2, *args, **kwargs):
304306
def round_rect(self, x0, y0, width, height, radius, *args, **kwargs):
305307
"""Rectangle with rounded corners drawing function.
306308
This works like a regular rect though! if radius = 0
307-
Will draw the outline of a rectangle with rounded corners with (x0,y0) at the top left"""
309+
Will draw the outline of a rectangle with rounded corners with (x0,y0) at the top left
310+
"""
308311
# shift to correct for start point location
309312
x0 += radius
310313
y0 += radius

0 commit comments

Comments
 (0)