Skip to content

Commit

Permalink
chore(ruff): parenthesize "a and b or ..." to enforce/clarify precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
rouilj committed Dec 11, 2024
1 parent c3dfc05 commit 2cb4254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roundup/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ def get_collection(self, class_name, input_payload):
else:
vals = []
for p in value.split(","):
dig = p and p.isdigit() or \
dig = (p and p.isdigit()) or \
(p[0] in ('-', '+') and p[1:].isdigit())
if prop.try_id_parsing and dig:
vals.append(p)
Expand Down

0 comments on commit 2cb4254

Please sign in to comment.