Skip to content

Commit 4b69995

Browse files
Reformatted with Black
1 parent b286a2a commit 4b69995

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

adafruit_progressbar/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ def __init__(
8383
raise ValueError("The width and the height must be greater than zero")
8484

8585
if not value_range[0] <= value <= value_range[1]:
86-
raise ValueError("The starting value must be within the range of minimum to maximum")
86+
raise ValueError(
87+
"The starting value must be within the range of minimum to maximum"
88+
)
8789

8890
_edge_size = 2 * margin_size + 2 * border_thickness
8991

@@ -287,7 +289,9 @@ def value(self, value: Union[int, float]) -> None:
287289
raise TypeError("The value to set must be either an integer or a float")
288290

289291
if not self.minimum <= value <= self.maximum:
290-
raise ValueError(f"The value must be between minimum ({self.minimum}) and maximum ({self.maximum})")
292+
raise ValueError(
293+
f"The value must be between minimum ({self.minimum}) and maximum ({self.maximum})"
294+
)
291295

292296
# Save off the previous value, so we can pass it in the
293297
# call to "Render"

0 commit comments

Comments
 (0)