Skip to content

Commit 7ace15a

Browse files
committed
chore(ruff): replace 'x == y or x == z' with 'x in [y,z]'
1 parent 98fc6ee commit 7ace15a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/rest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ def get_collection(self, class_name, input_payload):
818818
page[key] = value
819819
elif key == "@verbose":
820820
verbose = int(value)
821-
elif key == "@fields" or key == "@attrs":
821+
elif key in ["@fields", "@attrs"]:
822822
f = value.split(",")
823823
if len(f) == 1:
824824
f = value.split(":")
@@ -1118,7 +1118,7 @@ def get_element(self, class_name, item_id, input_payload):
11181118
for form_field in input_payload.value:
11191119
key = form_field.name
11201120
value = form_field.value
1121-
if key == "@fields" or key == "@attrs":
1121+
if key in ["@fields", "@attrs"]:
11221122
if props is None:
11231123
props = set()
11241124
# support , or : separated elements

0 commit comments

Comments
 (0)