Skip to content

Commit 5b7a708

Browse files
linter
1 parent bd8b865 commit 5b7a708

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pina/utils.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,10 @@ def check_positive_integer(value, strict=True):
205205
:raises ValueError: If the value is not a positive integer.
206206
"""
207207
if strict:
208-
assert (isinstance(value, int) and value > 0), \
209-
f"Expected a strictly positive integer, got {value}."
208+
assert (
209+
isinstance(value, int) and value > 0
210+
), f"Expected a strictly positive integer, got {value}."
210211
else:
211-
assert (isinstance(value, int) and value >= 0), \
212-
f"Expected a non-negative integer, got {value}."
212+
assert (
213+
isinstance(value, int) and value >= 0
214+
), f"Expected a non-negative integer, got {value}."

0 commit comments

Comments
 (0)