Skip to content

Commit 7dea3da

Browse files
committed
Remove () from class references
1 parent e71dd6b commit 7dea3da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_drv2605.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def __setitem__(self, slot: int, effect: Union[Effect, Pause]) -> None:
318318
if not 0 <= slot <= 7:
319319
raise IndexError("Slot must be a value within 0-7!")
320320
if not isinstance(effect, (Effect, Pause)):
321-
raise TypeError("Effect must be either an Effect() or Pause()!")
321+
raise TypeError("Effect must be either an Effect or Pause!")
322322
# pylint: disable=protected-access
323323
self._drv2605._write_u8(_DRV2605_REG_WAVESEQ1 + slot, effect.raw_value)
324324

0 commit comments

Comments
 (0)