Skip to content

Commit b99b6f6

Browse files
committed
Reformatted per pre-commit
1 parent 87a3722 commit b99b6f6

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

adafruit_funhouse/graphics.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ class Graphics(GraphicsBase):
4545
"""
4646

4747
# pylint: disable=too-many-instance-attributes, too-many-locals, too-many-branches, too-many-statements, too-few-public-methods
48-
def __init__(self, *, default_bg: int = 0, rotation: int = 270, scale: int = 1, debug: bool = False):
48+
def __init__(
49+
self,
50+
*,
51+
default_bg: int = 0,
52+
rotation: int = 270,
53+
scale: int = 1,
54+
debug: bool = False
55+
):
4956
self._debug = debug
5057
self.display = board.DISPLAY
5158
self.display.rotation = rotation

adafruit_funhouse/network.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@ def mqtt_loop(self, *args: int, suppress_mqtt_errors: bool = True, **kwargs: int
129129
if self._mqtt_client is not None:
130130
self._mqtt_client.loop(*args, **kwargs)
131131

132-
def mqtt_publish(self, *args: Union[str, int, float], suppress_mqtt_errors: bool = True, **kwargs: Union[str, int, float]):
132+
def mqtt_publish(
133+
self,
134+
*args: Union[str, int, float],
135+
suppress_mqtt_errors: bool = True,
136+
**kwargs: Union[str, int, float]
137+
):
133138
"""Publish to MQTT"""
134139
self._get_mqtt_client()
135140
if suppress_mqtt_errors:
@@ -142,7 +147,9 @@ def mqtt_publish(self, *args: Union[str, int, float], suppress_mqtt_errors: bool
142147
if self._mqtt_client is not None:
143148
self._mqtt_client.publish(*args, **kwargs)
144149

145-
def mqtt_connect(self, *args: Union[bool, str, int], **kwargs: Union[bool, str, int]):
150+
def mqtt_connect(
151+
self, *args: Union[bool, str, int], **kwargs: Union[bool, str, int]
152+
):
146153
"""Connect to MQTT"""
147154
self._get_mqtt_client()
148155
if self._mqtt_client is not None:

0 commit comments

Comments
 (0)