|
46 | 46 | * Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
|
47 | 47 | """
|
48 | 48 |
|
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 |
52 | 51 |
|
53 | 52 | import gc
|
54 | 53 | import math
|
@@ -376,7 +375,7 @@ def _draw_disk(self, x, y, width, height, r, color, fill=True, outline=True, str
|
376 | 375 | self._helper(x+r, y+r, r, color=color, stroke=stroke,
|
377 | 376 | x_offset=width-2*r-1, y_offset=height-2*r-1)
|
378 | 377 |
|
379 |
| - # pylint: disable=invalid-name, too-many-locals, too-many-branches |
| 378 | + # pylint: disable=too-many-locals, too-many-branches |
380 | 379 | def _helper(self, x0, y0, r, color, x_offset=0, y_offset=0,
|
381 | 380 | stroke=1, fill=False):
|
382 | 381 | """Draw quandrant wedges filled or outlined"""
|
@@ -413,7 +412,7 @@ def _helper(self, x0, y0, r, color, x_offset=0, y_offset=0,
|
413 | 412 | self._plot(x0 + x + x_offset, y0 - y + line, color)
|
414 | 413 | self._plot(x0 + y + x_offset - line, y0 - x, color)
|
415 | 414 |
|
416 |
| - # pylint: enable=invalid-name, too-many-locals, too-many-branches |
| 415 | + # pylint: enable=too-many-locals, too-many-branches |
417 | 416 |
|
418 | 417 | def circle(self, radius, extent=None, steps=None):
|
419 | 418 | """Not implemented
|
@@ -664,8 +663,10 @@ def isdown(self):
|
664 | 663 | ############################################################################
|
665 | 664 | # Color control
|
666 | 665 |
|
| 666 | +#pylint:disable=no-self-use |
667 | 667 | def _color_to_pencolor(self, c):
|
668 | 668 | return 1 + Color.colors.index(c)
|
| 669 | +#pylint:enable=no-self-use |
669 | 670 |
|
670 | 671 | def color(self, *args):
|
671 | 672 | """Not implemented
|
|
0 commit comments