Skip to content

Commit 9d20149

Browse files
committed
Reformatted and linted
1 parent 5ab8971 commit 9d20149

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

displayio_effects/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
https://circuitpython.org/downloads
2222
"""
2323

24+
2425
class WidgetType:
2526
"""Enum values for customizable widget types"""
2627

displayio_effects/fluctuation_effect.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ def update_fluctuation(self):
9898
def hook_fluctuation_effect(widget_class, widget_type):
9999
"""Adds the fluctuation effect for the given class
100100
101-
:param widget_class: The widget that should have this effect hooked
102-
into them.
101+
:param widget_class: The widget class that should have this effect hooked
102+
into it
103103
:param int widget_type: The enum value of this widget type, must be a
104104
valid ~WidgetType
105105
@@ -109,7 +109,6 @@ def hook_fluctuation_effect(widget_class, widget_type):
109109
.. code-block:: python
110110
111111
from displayio_dial import Dial
112-
from
113112
from displayio_effects import WidgetType, fluctuation_effect
114113
115114
fluctuation_effect.hook_fluctuation_effect(Dial, WidgetType.DIAL)
@@ -118,7 +117,9 @@ def hook_fluctuation_effect(widget_class, widget_type):
118117

119118
value_name = FLUCTUATION_WIDGET_VALUES.get(widget_type)
120119
if not value_name:
121-
raise ValueError("The given widget does not have the ability to use this effect")
120+
raise ValueError(
121+
"The given widget does not have the ability to use this effect"
122+
)
122123

123124
setattr(widget_class, "_value_name", value_name)
124125

0 commit comments

Comments
 (0)