Skip to content

Commit 2cb4254

Browse files
committed
chore(ruff): parenthesize "a and b or ..." to enforce/clarify precedence
1 parent c3dfc05 commit 2cb4254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ def get_collection(self, class_name, input_payload):
916916
else:
917917
vals = []
918918
for p in value.split(","):
919-
dig = p and p.isdigit() or \
919+
dig = (p and p.isdigit()) or \
920920
(p[0] in ('-', '+') and p[1:].isdigit())
921921
if prop.try_id_parsing and dig:
922922
vals.append(p)

0 commit comments

Comments
 (0)