Skip to content

Commit 5d929cb

Browse files
committed
Disable Pylint invalid-name for the Effect.id property (Issue #9)
#9 (comment)
1 parent 87e03c5 commit 5d929cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_drv2605.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ class Effect:
239239
"""Class for adding an effect to the DRV2605 waveform sequence."""
240240
def __init__(self, effect_id):
241241
self._effect_id = 0
242+
# pylint: disable=invalid-name
242243
self.id = effect_id
243244

244245
@property
@@ -247,11 +248,13 @@ def raw_value(self):
247248
return self._effect_id
248249

249250
@property
251+
# pylint: disable=invalid-name
250252
def id(self):
251253
"""Return the effect ID."""
252254
return self._effect_id
253255

254256
@id.setter
257+
# pylint: disable=invalid-name
255258
def id(self, effect_id):
256259
"""Set the effect ID."""
257260
if not 0 <= effect_id <= 123:

0 commit comments

Comments
 (0)