Pylint tweaks
This commit is contained in:
parent
12139d25a1
commit
e01dd86251
1 changed files with 13 additions and 14 deletions
|
|
@ -38,9 +38,6 @@ Implementation Notes
|
|||
|
||||
**Hardware:**
|
||||
|
||||
.. todo:: Add links to any specific hardware product page(s), or category page(s). Use unordered list & hyperlink rST
|
||||
inline format: "* `Link Text <url>`_"
|
||||
|
||||
**Software and Dependencies:**
|
||||
|
||||
* Adafruit CircuitPython firmware for the supported boards:
|
||||
|
|
@ -49,6 +46,8 @@ Implementation Notes
|
|||
* Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
|
||||
"""
|
||||
|
||||
#pylint:disable=too-many-public-methods,invalid-name,too-many-instance-attributes,too-few-public-methods
|
||||
|
||||
import displayio
|
||||
import board
|
||||
import gc
|
||||
|
|
@ -344,7 +343,7 @@ class turtle:
|
|||
|
||||
def pencolor(self, c):
|
||||
if not c in Color.colors:
|
||||
raise RuntimeError("Color must be one of the 'color' class items")
|
||||
raise RuntimeError("Color must be one of the 'Color' class items")
|
||||
self._pencolor = 1 + Color.colors.index(c)
|
||||
|
||||
def mode(self, mode=None):
|
||||
|
|
@ -355,10 +354,10 @@ class turtle:
|
|||
elif mode is None:
|
||||
if self._logomode:
|
||||
return "logo"
|
||||
else:
|
||||
return "standard"
|
||||
else:
|
||||
raise RuntimeError("Mode must be 'logo' or 'standard!'")
|
||||
return ""
|
||||
|
||||
def _turn(self, angle):
|
||||
if self._logomode:
|
||||
|
|
|
|||
Loading…
Reference in a new issue