Skip to content

Commit ad672ff

Browse files
committed
pylint tweaks
1 parent 91413ce commit ad672ff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

adafruit_turtle.py

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

49-
#pylint:disable=too-many-public-methods,invalid-name,too-many-instance-attributes
50-
#pylint:disable=too-few-public-methods,too-many-lines
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
5152

5253
import gc
5354
import math
@@ -363,7 +364,6 @@ def home(self):
363364
def _plot(self, x, y, c):
364365
try:
365366
self._fg_bitmap[int(x), int(y)] = c
366-
# self._logger.debug('Set fg_bitmap[%d, %d] to %d', x, y, self._fg_bitmap[int(x), int(y)])
367367
except IndexError:
368368
pass
369369

@@ -378,7 +378,7 @@ def _draw_disk(self, x, y, width, height, r, color, fill=True, outline=True, str
378378

379379
# pylint: disable=invalid-name, too-many-locals, too-many-branches
380380
def _helper(self, x0, y0, r, color, x_offset=0, y_offset=0,
381-
stroke=1, corner_flags=0x0F, fill=False):
381+
stroke=1, fill=False):
382382
"""Draw quandrant wedges filled or outlined"""
383383
f = 1 - r
384384
ddF_x = 1
@@ -457,7 +457,7 @@ def dot(self, size=None, color=None):
457457
color = self._color_to_pencolor(color)
458458
self._logger.debug('dot(%d)', size)
459459
self._draw_disk(self._x - size, self._y - size, 2 * size + 1, 2 * size + 1, size, color)
460-
self._fg_sprite[0,0] = 0
460+
self._fg_sprite[0, 0] = 0
461461

462462
def stamp(self):
463463
"""Not implemented

0 commit comments

Comments
 (0)