Skip to content

Commit 14d8d49

Browse files
committed
Clean up pylint complaints
1 parent ad672ff commit 14d8d49

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

adafruit_turtle.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@
4646
* Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
4747
"""
4848

49-
#pylint:disable=too-many-public-methods,too-many-instance-attributes
50-
#pylint:disable=too-few-public-methods,too-many-lines,too-many-arguments
51-
#pylint:disable=no-self-use,invalid-name
49+
#pylint:disable=too-many-public-methods, too-many-instance-attributes, invalid-name
50+
#pylint:disable=too-few-public-methods, too-many-lines, too-many-arguments
5251

5352
import gc
5453
import math
@@ -376,7 +375,7 @@ def _draw_disk(self, x, y, width, height, r, color, fill=True, outline=True, str
376375
self._helper(x+r, y+r, r, color=color, stroke=stroke,
377376
x_offset=width-2*r-1, y_offset=height-2*r-1)
378377

379-
# pylint: disable=invalid-name, too-many-locals, too-many-branches
378+
# pylint: disable=too-many-locals, too-many-branches
380379
def _helper(self, x0, y0, r, color, x_offset=0, y_offset=0,
381380
stroke=1, fill=False):
382381
"""Draw quandrant wedges filled or outlined"""
@@ -413,7 +412,7 @@ def _helper(self, x0, y0, r, color, x_offset=0, y_offset=0,
413412
self._plot(x0 + x + x_offset, y0 - y + line, color)
414413
self._plot(x0 + y + x_offset - line, y0 - x, color)
415414

416-
# pylint: enable=invalid-name, too-many-locals, too-many-branches
415+
# pylint: enable=too-many-locals, too-many-branches
417416

418417
def circle(self, radius, extent=None, steps=None):
419418
"""Not implemented
@@ -664,8 +663,10 @@ def isdown(self):
664663
############################################################################
665664
# Color control
666665

666+
#pylint:disable=no-self-use
667667
def _color_to_pencolor(self, c):
668668
return 1 + Color.colors.index(c)
669+
#pylint:enable=no-self-use
669670

670671
def color(self, *args):
671672
"""Not implemented

0 commit comments

Comments
 (0)