Skip to content

Commit 2bc3144

Browse files
committed
linted
1 parent 1e31b86 commit 2bc3144

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_framebuf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def __init__(self, buf, width, height, buf_format=MVLSB, stride=None):
167167

168168
@property
169169
def rotation(self):
170+
"""The rotation setting of the display, can be one of (0, 1, 2, 3)"""
170171
return self._rotation
171172

172173
@rotation.setter
@@ -230,7 +231,7 @@ def rect(self, x, y, width, height, color, *, fill=False):
230231
y = self.height - y - height
231232

232233
if width < 1 or height < 1 or (x + width) <= 0 or (y + height) <= 0 or y >= self.height \
233-
or x >= self.width:
234+
or x >= self.width: # pylint: disable=too-many-boolean-expressions
234235
return
235236
x_end = min(self.width-1, x + width-1)
236237
y_end = min(self.height-1, y + height-1)

0 commit comments

Comments
 (0)