Skip to content

Commit 2e9d633

Browse files
committed
Pylint tweaks
1 parent 9ef52d7 commit 2e9d633

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

adafruit_cursorcontrol/cursorcontrol.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
__version__ = "0.0.0-auto.0"
4343
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Cursor.git"
4444

45-
class Cursor:
45+
class Cursor(object):
4646
"""Mouse cursor interaction for CircuitPython.
4747
4848
:param ~displayio.Display display: CircuitPython display object.
@@ -65,7 +65,7 @@ class Cursor:
6565
# initialize the mouse cursor object
6666
mouse_cursor = Cursor(display, display_group=splash)
6767
"""
68-
# pylint: disable=too-many-arguments
68+
# pylint: disable=too-many-arguments,line-too-long
6969
def __init__(self, display=None, display_group=None, bmp=None, is_hidden=False, cursor_speed=5, scale=1):
7070
self._display = display
7171
self._scale = scale
@@ -76,6 +76,7 @@ def __init__(self, display=None, display_group=None, bmp=None, is_hidden=False,
7676
if bmp is None:
7777
bmp = self._default_cursor_bitmap()
7878
self.generate_cursor(bmp)
79+
# pylint: enable=too-many-arguments,line-too-long
7980

8081
def __enter__(self):
8182
return self
@@ -175,6 +176,7 @@ def hide(self, is_hidden):
175176
self._is_hidden = False
176177
self._display_grp.append(self._cursor_grp)
177178

179+
#pylint:disable=no-self-use
178180
def _default_cursor_bitmap(self):
179181
bmp = displayio.Bitmap(20, 20, 3)
180182
# left edge, outline
@@ -196,6 +198,7 @@ def _default_cursor_bitmap(self):
196198
bmp[i-3, 12] = 1
197199
bmp[i-4, 11] = 1
198200
return bmp
201+
#pylint:enable=no-self-use
199202

200203
def generate_cursor(self, bmp):
201204
"""Generates a cursor icon"""

0 commit comments

Comments
 (0)