Skip to content

Commit b8e8df7

Browse files
committed
pylint fixes
1 parent a23dab9 commit b8e8df7

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

adafruit_displayio_layout/widgets/control.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
2222
"""
2323

24+
# pylint: disable=unnecessary-pass
25+
2426
__version__ = "0.0.0-auto.0"
2527
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_Layout.git"
2628

@@ -43,7 +45,10 @@ def __init__(
4345
)
4446

4547
def contains(self, touch_point):
46-
"""Checks if the Control was touched. Returns True if the touch_point is within the Control's touch_boundary.
48+
# pylint: disable=unsubscriptable-object
49+
50+
"""Checks if the Control was touched. Returns True if the touch_point is
51+
within the Control's touch_boundary.
4752
4853
:param touch_point: x,y location of the screen, converted to local coordinates.
4954
:return: Boolean

adafruit_displayio_layout/widgets/widget.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def __init__(
5454
bounding_box=None, # pixel extent of the widget [x0, y0, width, height]
5555
**kwargs,
5656
):
57+
# pylint: disable=too-many-arguments
5758

5859
super().__init__(**kwargs) # should send x,y and scale (optional) to Group
5960

@@ -128,7 +129,8 @@ def anchored_position(self, new_anchored_position):
128129

129130
@property
130131
def bounding_box(self):
131-
"""The boundary of the widget. [x, y, width, height] in Widget's local coordinates (in pixels)."""
132+
"""The boundary of the widget. [x, y, width, height] in Widget's local
133+
coordinates (in pixels)."""
132134
return self._bounding_box
133135

134136
@property

docs/api.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@
66
77
.. automodule:: adafruit_displayio_layout.layouts.grid_layout
88
:members:
9+
10+
.. automodule:: adafruit_displayio_layout.widgets.widget
11+
:members:
12+
13+
.. automodule:: adafruit_displayio_layout.widgets.control
14+
:members:

0 commit comments

Comments
 (0)