We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd8b865 commit 5b7a708Copy full SHA for 5b7a708
pina/utils.py
@@ -205,8 +205,10 @@ def check_positive_integer(value, strict=True):
205
:raises ValueError: If the value is not a positive integer.
206
"""
207
if strict:
208
- assert (isinstance(value, int) and value > 0), \
209
- f"Expected a strictly positive integer, got {value}."
+ assert (
+ isinstance(value, int) and value > 0
210
+ ), f"Expected a strictly positive integer, got {value}."
211
else:
- assert (isinstance(value, int) and value >= 0), \
212
- f"Expected a non-negative integer, got {value}."
213
+ isinstance(value, int) and value >= 0
214
+ ), f"Expected a non-negative integer, got {value}."
0 commit comments